Skip to content

Commit

Permalink
add inner_config_dev_path
Browse files Browse the repository at this point in the history
  • Loading branch information
wayyoungboy committed Dec 12, 2024
1 parent 7c07021 commit 4f7bd5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@
absPath = os.path.dirname(os.path.abspath(sys.executable))
else:
absPath = os.path.dirname(os.path.abspath(__file__))
INNER_CONFIG_FILE = os.path.join(absPath, "conf/inner_config.yml")
inner_config_release_path = os.path.join(absPath, "conf/inner_config.yml")
inner_config_dev_path = os.path.join(absPath, "../../conf/inner_config.yml")
if os.path.exists(inner_config_release_path):
INNER_CONFIG_FILE = inner_config_release_path
else:
INNER_CONFIG_FILE = inner_config_dev_path

DEFAULT_CONFIG_DATA = '''
obcluster:
Expand Down
2 changes: 1 addition & 1 deletion src/handler/checker/check_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def handle(self):
result_map = {}
for file in files:
if "check_package" in file:
cases_map = {"all": {"name": "all", "command": "obdiag check", "info_en": "default check all task without filter", "info_cn": "默认执行除filter组里的所有巡检项"}}
cases_map = {"all": {"name": "all", "command": "obdiag check run", "info_en": "default check all task without filter", "info_cn": "默认执行除filter组里的所有巡检项"}}
# Obtain which files match and corresponding header files
# Using string segmentation methods
parts = file.split('_')
Expand Down

0 comments on commit 4f7bd5d

Please sign in to comment.