fix formatting for including DeletionDate in response
This commit is contained in:
parent
60ec840eef
commit
15c24e49f0
@ -41,7 +41,8 @@ class Key(BaseModel):
|
||||
"KeyState": self.key_state,
|
||||
}
|
||||
}
|
||||
key_dict['KeyMetadata']['DeletionDate'] = self.deletion_date if self.key_state == 'PendingDeletion'
|
||||
if self.key_state == 'PendingDeletion':
|
||||
key_dict['KeyMetadata']['DeletionDate'] = self.deletion_date
|
||||
return key_dict
|
||||
|
||||
def delete(self, region_name):
|
||||
|
Loading…
Reference in New Issue
Block a user