Simplified optional attribute get

This commit is contained in:
James Belleau 2020-05-07 04:33:31 -05:00
parent 811ec3bd2a
commit 9881306ef2

View File

@ -55,9 +55,7 @@ class ManagedBlockchainResponse(BaseResponse):
member_configuration = json_body["MemberConfiguration"]
# Optional
description = None
if "Description" in json_body:
description = json_body["Description"]
description = json_body.get("Description", None)
response = self.backend.create_network(
name,