Skip to content

Commit

Permalink
fix: 修复arrayCount读取错误 (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
HS-Gray authored Dec 19, 2023
1 parent 28a653d commit 6a2483b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tccli/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def _add_array_item(self, param_list, profile):
is_conf_exist, conf_path = Utils.file_existed(os.path.join(os.path.expanduser("~"), ".tccli"),
profile + ".configure")
if is_conf_exist:
array_count = Utils.load_json_msg(conf_path).get("arrayCount", 10)
array_count = Utils.load_json_msg(conf_path).get("_sys_param", {}).get("arrayCount", 10)
else:
array_count = 10
all_param_list = param_list
Expand Down

0 comments on commit 6a2483b

Please sign in to comment.