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"]
|
||||
|
||||
# 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…
Reference in New Issue
Block a user