use image id instad of name (#7293)

This commit is contained in:
Hugo Blom 2021-02-19 18:16:25 +01:00 committed by GitHub
parent 662a37ab4f
commit 8682a57ea3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()))