Module: check_mk
Branch: master
Commit: fad58d937377cdc284023bfdbdd720d06033803f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fad58d937377cd…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Sep 18 11:26:03 2014 +0200
agent_vsphere: fixed invalid piggyback section when using direct mode
---
agents/special/agent_vsphere | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/agents/special/agent_vsphere b/agents/special/agent_vsphere
index 8d2410a..45edf35 100755
--- a/agents/special/agent_vsphere
+++ b/agents/special/agent_vsphere
@@ -807,9 +807,7 @@ if not error:
# TODO: improve error handling: check if multiple results and opt_direct
for hostname, properties in hostsystems_properties.items():
- if opt_direct and opt_hostname:
- print "<<<<%s>>>>" % opt_hostname
- else:
+ if not opt_direct:
print "<<<<%s>>>>" %
convert_hostname(properties["name"][0])
print "<<<esx_vsphere_hostsystem>>>"