Simplified optional attribute get
This commit is contained in:
parent
811ec3bd2a
commit
9881306ef2
1 changed files with 1 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue