Skip to content

Commit

Permalink
fix cli ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
wjo1212 committed Sep 10, 2018
1 parent 98d0520 commit 31efaff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions aliyun/log/machine_group_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ def to_json(self):
return json_value

def from_json(self, json_value):
self.group_name = json_value.get("groupName", None)
self.group_type = json_value.get("groupType", "")
self.group_attribute = json_value.get("groupAttribute", {})
self.machine_type = json_value.get("machineIdentifyType", None)
self.machine_list = json_value.get("machineList", None)
self.group_name = json_value.get("groupName", json_value["group_name"])
self.group_type = json_value.get("groupType", json_value.get("group_type", ""))
self.machine_type = json_value.get("machineIdentifyType", json_value.get("machine_type", "userdefined"))
self.group_attribute = json_value.get("groupAttribute", json_value.get("group_attribute", {}))
self.machine_list = json_value.get("machineList", json_value.get("machine_list", None))
self.create_time = json_value.get("crateTime", None)
self.last_modify_time = json_value.get("lastModifyTime", None)

Expand Down

0 comments on commit 31efaff

Please sign in to comment.