Simplified optional attribute get
This commit is contained in:
parent
811ec3bd2a
commit
9881306ef2
@ -55,9 +55,7 @@ class ManagedBlockchainResponse(BaseResponse):
|
|||||||
member_configuration = json_body["MemberConfiguration"]
|
member_configuration = json_body["MemberConfiguration"]
|
||||||
|
|
||||||
# Optional
|
# Optional
|
||||||
description = None
|
description = json_body.get("Description", None)
|
||||||
if "Description" in json_body:
|
|
||||||
description = json_body["Description"]
|
|
||||||
|
|
||||||
response = self.backend.create_network(
|
response = self.backend.create_network(
|
||||||
name,
|
name,
|
||||||
|
Loading…
Reference in New Issue
Block a user