Merge "nova: track flavor name"

This commit is contained in:
Jenkins 2017-02-18 15:18:33 +00:00 committed by Gerrit Code Review
commit e028ef71f8
2 changed files with 10 additions and 0 deletions

View File

@ -70,6 +70,7 @@ resources:
image_ref: resource_metadata.image_ref
display_name: resource_metadata.display_name
flavor_id: resource_metadata.(instance_flavor_id|(flavor.id))
flavor_name: resource_metadata.(instance_type|(flavor.name))
server_group: resource_metadata.user_metadata.server_group
event_delete: compute.instance.delete.start
event_attributes:

View File

@ -102,6 +102,15 @@ resources_update_operations = [
"value": {"type": "string", "min_length": 0, "max_length": 255,
"required": False}
}]},
{"desc": "add flavor_name to instance",
"type": "update_attribute_type",
"resource_type": "instance",
"data": [{
"op": "add",
"path": "/attributes/flavor_name",
"value": {"type": "string", "min_length": 0, "max_length": 255,
"required": True, "options": {'fill': ''}}
}]},
]