Browse Source

use image id instad of name (#7293)

pull/7308/head
Hugo Blom 3 years ago
committed by GitHub
parent
commit
8682a57ea3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. 2
      contrib/terraform/terraform.py

2
contrib/terraform/terraform.py

@ -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…
Cancel
Save