Skip to content

Commit

Permalink
Fix config and default_map handling in "status" command (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Burmak authored Apr 19, 2024
1 parent 190dab7 commit 9630bc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ch_tools/monrun_checks/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def status_impl(ctx):
"""
checks_status = []
ctx.obj["status_mode"] = True
ctx.default_map = ctx.obj["config"]["ch-monitoring"]
for cmd in commands:
status = ctx.invoke(cmd)
checks_status.append(
Expand Down
1 change: 1 addition & 0 deletions ch_tools/monrun_checks_keeper/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def status_impl(ctx):
"""
checks_status = []
ctx.obj.update({"status_mode": True})
ctx.default_map = ctx.obj["config"]["keeper-monitoring"]
for cmd in commands:
status = ctx.invoke(cmd)
checks_status.append(
Expand Down

0 comments on commit 9630bc7

Please sign in to comment.