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"]
|
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…
Add table
Add a link
Reference in a new issue