Update the auto-discovery scripts.

Refs #5856
This commit is contained in:
Gunnar Beutner 2014-04-08 17:20:10 +02:00
parent 4a32ca9123
commit f1d6d77330
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ for plugin in plugins:
print(" vars.community = \"%s\"," % (community))
print(" vars.plugin = \"%s\"," % (plugin))
print()
print(" assign where host.vars.address == \"%s\"" % (ipaddr))
print(" assign where host.address == \"%s\"" % (ipaddr))
print("}")
print()

View File

@ -109,7 +109,7 @@ def print_host(host):
print "object Host \"%s\" {" % (host["name"])
print "\timport \"discovered-host\","
print ""
print "\tvars.address = \"%s\"," % (host["address"])
print "\taddress = \"%s\"," % (host["address"])
print "}"
print ""