Fix nits from trusted certs notification change
This is a follow up to address a few nits in change Ib5b50a3889ab15d5aac992f92e9be372a915eeff. Change-Id: I08ce4a9f5bb33761d8c5ff82ef9faf874ac97fcc
This commit is contained in:
@@ -236,7 +236,7 @@ class InstanceCreatePayload(InstanceActionPayload):
|
||||
self.tags = [instance_tag.tag
|
||||
for instance_tag in instance.tags]
|
||||
self.trusted_image_certificates = None
|
||||
if instance.get("trusted_certs", None):
|
||||
if instance.trusted_certs:
|
||||
self.trusted_image_certificates = instance.trusted_certs.ids
|
||||
|
||||
|
||||
@@ -322,14 +322,14 @@ class InstanceActionRebuildPayload(InstanceActionPayload):
|
||||
nullable=True)
|
||||
}
|
||||
|
||||
def __init__(self, context, instance, fault, bdms):
|
||||
def __init__(self, context, instance, fault, bdms=None):
|
||||
super(InstanceActionRebuildPayload, self).__init__(
|
||||
context=context,
|
||||
instance=instance,
|
||||
fault=fault,
|
||||
bdms=bdms)
|
||||
self.trusted_image_certificates = None
|
||||
if instance.get("trusted_certs", None):
|
||||
if instance.trusted_certs:
|
||||
self.trusted_image_certificates = instance.trusted_certs.ids
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user