Merge "The field instance_name was added to InstanceCreatePayload"
This commit is contained in:
commit
a80bc66dc7
@ -20,8 +20,9 @@
|
|||||||
"trusted_image_certificates": [
|
"trusted_image_certificates": [
|
||||||
"cert-id-1",
|
"cert-id-1",
|
||||||
"cert-id-2"
|
"cert-id-2"
|
||||||
]
|
],
|
||||||
|
"instance_name": "instance-00000001"
|
||||||
},
|
},
|
||||||
"nova_object.name":"InstanceCreatePayload",
|
"nova_object.name":"InstanceCreatePayload",
|
||||||
"nova_object.version": "1.10"
|
"nova_object.version": "1.11"
|
||||||
}
|
}
|
||||||
|
@ -228,13 +228,14 @@ class InstanceCreatePayload(InstanceActionPayload):
|
|||||||
# InstanceCreatePayload
|
# InstanceCreatePayload
|
||||||
# 1.10: Added action_initiator_user and action_initiator_project to
|
# 1.10: Added action_initiator_user and action_initiator_project to
|
||||||
# InstancePayload
|
# InstancePayload
|
||||||
VERSION = '1.10'
|
# 1.11: Added instance_name to InstanceCreatePayload
|
||||||
|
VERSION = '1.11'
|
||||||
fields = {
|
fields = {
|
||||||
'keypairs': fields.ListOfObjectsField('KeypairPayload'),
|
'keypairs': fields.ListOfObjectsField('KeypairPayload'),
|
||||||
'tags': fields.ListOfStringsField(),
|
'tags': fields.ListOfStringsField(),
|
||||||
'trusted_image_certificates': fields.ListOfStringsField(
|
'trusted_image_certificates': fields.ListOfStringsField(
|
||||||
nullable=True)
|
nullable=True),
|
||||||
|
'instance_name': fields.StringField(nullable=True),
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, context, instance, fault, bdms):
|
def __init__(self, context, instance, fault, bdms):
|
||||||
@ -250,6 +251,7 @@ class InstanceCreatePayload(InstanceActionPayload):
|
|||||||
self.trusted_image_certificates = None
|
self.trusted_image_certificates = None
|
||||||
if instance.trusted_certs:
|
if instance.trusted_certs:
|
||||||
self.trusted_image_certificates = instance.trusted_certs.ids
|
self.trusted_image_certificates = instance.trusted_certs.ids
|
||||||
|
self.instance_name = instance.name
|
||||||
|
|
||||||
|
|
||||||
@nova_base.NovaObjectRegistry.register_notification
|
@nova_base.NovaObjectRegistry.register_notification
|
||||||
|
@ -397,7 +397,7 @@ notification_object_data = {
|
|||||||
'1.0-a73147b93b520ff0061865849d3dfa56',
|
'1.0-a73147b93b520ff0061865849d3dfa56',
|
||||||
'InstanceActionVolumeSwapPayload': '1.7-d3252403a9437bcdc80f1075214f8b45',
|
'InstanceActionVolumeSwapPayload': '1.7-d3252403a9437bcdc80f1075214f8b45',
|
||||||
'InstanceCreateNotification': '1.0-a73147b93b520ff0061865849d3dfa56',
|
'InstanceCreateNotification': '1.0-a73147b93b520ff0061865849d3dfa56',
|
||||||
'InstanceCreatePayload': '1.10-291b44932569b8ff864d911814293cfc',
|
'InstanceCreatePayload': '1.11-7513127966bc8f270946634d099e71c0',
|
||||||
'InstancePayload': '1.7-78354572f699b9a6ad9996b199d03375',
|
'InstancePayload': '1.7-78354572f699b9a6ad9996b199d03375',
|
||||||
'InstanceActionSnapshotNotification':
|
'InstanceActionSnapshotNotification':
|
||||||
'1.0-a73147b93b520ff0061865849d3dfa56',
|
'1.0-a73147b93b520ff0061865849d3dfa56',
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
The field ``instance_name`` has been added to the
|
||||||
|
``InstanceCreatePayload`` in the following versioned notifications:
|
||||||
|
|
||||||
|
* ``instance.create.start``
|
||||||
|
* ``instance.create.end``
|
||||||
|
* ``instance.create.error``
|
Loading…
Reference in New Issue
Block a user