use image id instad of name (#7293)
This commit is contained in:
parent
662a37ab4f
commit
8682a57ea3
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ def openstack_host(resource, module_name):
|
|||
})
|
||||
|
||||
# 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.extend('os_metadata_%s=%s' % item
|
||||
for item in list(attrs['metadata'].items()))
|
||||
|
|
Loading…
Reference in a new issue