Module: check_mk
Branch: master
Commit: b818b3fccf9f0182df89f073399aa5917ee981ca
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b818b3fccf9f01…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 6 13:54:45 2012 +0100
Fixed global parameters while doing automation inventory
---
modules/automation.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/automation.py b/modules/automation.py
index f403544..1e19a80 100644
--- a/modules/automation.py
+++ b/modules/automation.py
@@ -133,8 +133,7 @@ def automation_inventory(args):
def automation_try_inventory(args):
- global opt_use_cachefile, opt_no_tcp, opt_dont_submit, \
- inventory_max_cachefile_age, check_max_cachefile_age
+ global opt_use_cachefile, inventory_max_cachefile_age, check_max_cachefile_age
if args[0] == '--cache':
opt_use_cachefile = True
check_max_cachefile_age = 1000000000
@@ -167,7 +166,7 @@ def automation_try_inventory(args):
def automation_try_inventory_node(hostname):
- global opt_use_cachefile
+ global opt_use_cachefile, opt_no_tcp, opt_dont_submit
try:
ipaddress = lookup_ipaddress(hostname)