Skip to content

Commit

Permalink
fix some option checking in external store creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
wjo1212 committed Jan 28, 2019
1 parent aef5dbe commit 0878b3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aliyun/log/external_store_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ def to_json(self):
def from_json(json_value):
externalStoreName = json_value["externalStoreName"]
storeType = json_value["storeType"]
vpcId = json_value["parameter"]["vpc-id"]
instanceId = json_value["parameter"]["instance-id"]
host = json_value["parameter"]["host"]
vpcId = json_value["parameter"].get("vpc-id", "")
instanceId = json_value["parameter"].get("instance-id", "")
host = json_value["parameter"].get("host", "")
port = json_value["parameter"]["port"]
username = json_value["parameter"]["username"]
password = json_value["parameter"].get("password", "")
Expand Down

0 comments on commit 0878b3a

Please sign in to comment.