Module: check_mk
Branch: master
Commit: 8030097bb533547014c62fa64ae7b724039e73b2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8030097bb53354…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 19 16:40:54 2012 +0100
Fix option handling in downtime script
---
doc/treasures/downtime | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc/treasures/downtime b/doc/treasures/downtime
index 1cffd1b..99a0a75 100755
--- a/doc/treasures/downtime
+++ b/doc/treasures/downtime
@@ -93,8 +93,8 @@ for o,a in opts:
opt_verbose = True
elif o in [ '-a', '--all']:
opt_all = True
- elif o in [ '-r', '--remove']:
- opt_mode = 'remove'
+ elif o in [ '-s', '--set']:
+ opt_mode = 'set'
elif o in [ '-r', '--remove']:
opt_mode = 'remove'
elif o in [ '-c', '--comment']:
@@ -106,7 +106,7 @@ for o,a in opts:
elif o in [ '-S', '--secret']:
opt_secret = a
elif o in [ '-U', '--url']:
- opt_ = a
+ opt_url = a
if omd_site and not opt_secret:
try: