From e4184e21bc6d4a59a97cfc1793fcdcbc180b54bd Mon Sep 17 00:00:00 2001 From: Jose Caballero Bejar Date: Wed, 19 Aug 2026 13:27:40 +0100 Subject: [PATCH] add comment --- .../roles/vm_baseline/files/wazuh/enrich-wazuh-agent.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/os_builders/roles/vm_baseline/files/wazuh/enrich-wazuh-agent.py b/os_builders/roles/vm_baseline/files/wazuh/enrich-wazuh-agent.py index ad59da32..f577df61 100644 --- a/os_builders/roles/vm_baseline/files/wazuh/enrich-wazuh-agent.py +++ b/os_builders/roles/vm_baseline/files/wazuh/enrich-wazuh-agent.py @@ -71,6 +71,9 @@ def dict_to_xml(tag, d): response = requests.get(metadata_url) openstack_metadata = response.json() metadata_to_parse = ["uuid", "name", "hostname", "project_id"] + # IMPORTANT NOTE: + # the label "openstack.uuid" is now used by a stackstorm automation + # and therefore it cannot be removed for vm_attr in metadata_to_parse: labels_conf["openstack." + vm_attr] = openstack_metadata[vm_attr] agent_hostname = agent_hostname + "-" + openstack_metadata["uuid"]