Module: check_mk
Branch: master
Commit: 2155bfcd02cc9831b96ee93a5ad590b7f7de078d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2155bfcd02cc98…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jan 3 11:24:50 2013 +0100
FIX: Parameter --cleanup-autochecks (long for -u) works now like suggested in help
---
.bugs/746 | 7 +++++--
ChangeLog | 1 +
modules/check_mk.py | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/.bugs/746 b/.bugs/746
index 650eb13..95f0fa9 100644
--- a/.bugs/746
+++ b/.bugs/746
@@ -1,8 +1,11 @@
Title: check_mk --cleanup-autochecks shows usage message instead of performing
operation.
Component: core
-State: open
+Class: nastiness
+State: done
Date: 2012-10-11 10:49:23
Targetversion: future
-Class: nastiness
The documentation suggests that check_mk --cleanup-autochecks is synonymous with check_mk
-u but when I run check_mk --cleanup-autochecks it reports a usage error instead of
performing the operation. When I run check_mk -u, it does not report the usage message.
+
+2013-01-03 11:24:01: changed state open -> done
+Fixed this issue. No cleanup was performed with the long format parameter.
diff --git a/ChangeLog b/ChangeLog
index d9a93de..266f42a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
* Output better error message in case of old inventory function
* Do object cache precompile for monitoring core on cmk -R/-O
* Avoid duplicate verification of monitoring config on cmk -R/-O
+ * FIX: Parameter --cleanup-autochecks (long for -u) works now like suggested in help
Notifications:
* Fix flexible notifications on non-OMD systems
diff --git a/modules/check_mk.py b/modules/check_mk.py
index f79f889..a35e1cb 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -4717,7 +4717,7 @@ if __name__ == "__main__":
opt_showperfdata = True
elif o == '-n':
opt_dont_submit = True
- elif o == '-u':
+ elif o in [ '-u', '--cleanup-autochecks' ]:
opt_cleanup_autochecks = True
elif o == '--fake-dns':
fake_dns = a