Skip to content

Commit

Permalink
fix a legacy bug, field caseSensitive may not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
wjo1212 committed Dec 5, 2017
1 parent 1c80337 commit c7c0f23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aliyun/log/index_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ def from_json(self, json_value):
self.index_type = json_value['type']
if self.index_type == 'text':
self.token_list = json_value["token"]
self.case_sensitive = bool(json_value["caseSensitive"])
self.case_sensitive = bool(json_value.get("caseSensitive", False))
if 'doc_value' in json_value:
self.doc_value = bool(json_value["doc_value"])
if 'alias' in json_value:
if 'alias' in json_value:
self.alias = json_value['alias']


Expand Down

0 comments on commit c7c0f23

Please sign in to comment.