Merge lp:~verterok/charms/trusty/tanuki-spec-manager/disable-poller-check into lp:~tanuki/charms/trusty/tanuki-spec-manager/trunk

Proposed by Guillermo Gonzalez
Status: Merged
Approved by: Guillermo Gonzalez
Approved revision: 31
Merged at revision: 31
Proposed branch: lp:~verterok/charms/trusty/tanuki-spec-manager/disable-poller-check
Merge into: lp:~tanuki/charms/trusty/tanuki-spec-manager/trunk
Diff against target: 14 lines (+3/-1)
1 file modified
hooks/actions.py (+3/-1)
To merge this branch: bzr merge lp:~verterok/charms/trusty/tanuki-spec-manager/disable-poller-check
Reviewer Review Type Date Requested Status
Samuele Pedroni Approve
Review via email: mp+273415@code.launchpad.net

Commit message

use check_dummy instead of negate to disable store poller check

Description of the change

use check_dummy instead of negate to disable store poller check

To post a comment you must log in.
Revision history for this message
Samuele Pedroni (pedronis) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/actions.py'
2--- hooks/actions.py 2015-09-22 04:32:19 +0000
3+++ hooks/actions.py 2015-10-05 14:40:23 +0000
4@@ -344,7 +344,9 @@
5 # it exists.
6 if os.path.exists(log_path):
7 os.rename(log_path, log_path + ".old")
8- check_cmd = "negate {}".format(check_cmd)
9+ # use check_dummy instead of negate, because the log file might not
10+ # exist
11+ check_cmd = "check_dummy 0 'Store poller is disabled'"
12
13 nrpe_compat.add_check(
14 shortname="store_poller_check",

Subscribers

People subscribed via source and target branches