use image id instad of name (#7293)
parent
662a37ab4f
commit
8682a57ea3
|
@ -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 New Issue