fix formatting for including DeletionDate in response

This commit is contained in:
Jon Beilke 2018-10-05 16:00:20 -05:00
parent 60ec840eef
commit 15c24e49f0

View File

@ -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):