use image id instad of name (#7293)

pull/7308/head
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
1 changed files with 1 additions and 1 deletions

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