Merge "Remove redundant human_id fields when creating and updating datamodel"
This commit is contained in:
@@ -361,9 +361,6 @@ class ModelBuilder(object):
|
||||
flavor = instance.flavor
|
||||
instance_attributes = {
|
||||
"uuid": instance.id,
|
||||
# TODO(chenker) human_id is deprecated for removal. For the reason,
|
||||
# please reference bug 1833665.
|
||||
"human_id": instance.human_id,
|
||||
"name": instance.name,
|
||||
"memory": flavor["ram"],
|
||||
"disk": flavor["disk"],
|
||||
|
||||
@@ -29,5 +29,4 @@ class ComputeResource(base.Element):
|
||||
|
||||
fields = {
|
||||
"uuid": wfields.StringField(),
|
||||
"human_id": wfields.StringField(default=""),
|
||||
}
|
||||
|
||||
@@ -74,9 +74,6 @@ class NovaNotification(base.NotificationEndpoint):
|
||||
instance.update({
|
||||
'state': instance_data['state'],
|
||||
'hostname': instance_data['host_name'],
|
||||
# TODO(chenker) human_id is deprecated for removal. For the reason,
|
||||
# please reference bug 1833665.
|
||||
'human_id': instance_data['display_name'],
|
||||
# this is the user-provided display name of the server which is not
|
||||
# guaranteed to be unique nor is it immutable.
|
||||
'name': instance_data['display_name'],
|
||||
|
||||
Reference in New Issue
Block a user