Skip to content
Snippets Groups Projects
Unverified Commit 8682a57e authored by Hugo Blom's avatar Hugo Blom Committed by GitHub
Browse files

use image id instad of name (#7293)

parent 662a37ab
No related branches found
No related tags found
No related merge requests found
...@@ -323,7 +323,7 @@ def openstack_host(resource, module_name): ...@@ -323,7 +323,7 @@ def openstack_host(resource, module_name):
}) })
# add groups based on attrs # add groups based on attrs
groups.append('os_image=' + attrs['image']['name']) groups.append('os_image=' + attrs['image']['id'])
groups.append('os_flavor=' + attrs['flavor']['name']) groups.append('os_flavor=' + attrs['flavor']['name'])
groups.extend('os_metadata_%s=%s' % item groups.extend('os_metadata_%s=%s' % item
for item in list(attrs['metadata'].items())) for item in list(attrs['metadata'].items()))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment