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"]