Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down