Include attributes of Image
Change-Id: Ic602f4584646faaa3a1fbc7cd2663b46f3c60ba0
This commit is contained in:
parent
42f1c52620
commit
36bacfb2cf
@ -38,8 +38,8 @@ def _properties(alldata, region):
|
||||
if region['action'] != 'create':
|
||||
properties['deactivate'] = {1: False, 0: True}[alldata['enabled']]
|
||||
|
||||
# if alldata['properties']:
|
||||
# properties['extra_properties'] = alldata['properties']
|
||||
if alldata['properties']:
|
||||
properties['extra_properties'] = alldata['properties']
|
||||
|
||||
return properties
|
||||
|
||||
|
@ -49,7 +49,11 @@ yaml_output = {
|
||||
'min_disk': 2, 'min_ram': 0, 'name': 'Ubuntu', 'owner': 'unknown',
|
||||
'protected': True,
|
||||
'id': '12345678-9012-3456-7890-123456789012',
|
||||
'tags': ['abcd-efgh-ijkl-4567', 'mnop-qrst-uvwx-0987']
|
||||
'tags': ['abcd-efgh-ijkl-4567', 'mnop-qrst-uvwx-0987'],
|
||||
'extra_properties': {
|
||||
'key_name': 'Key1', 'key_value': 'Key1.value',
|
||||
'image_internal_id': 1
|
||||
}
|
||||
},
|
||||
'type': 'OS::Glance::WebImage'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user