Module: check_mk
Branch: master
Commit: 9c2430d94297d930c6f920b67303593f41a030ee
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9c2430d94297d9…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jul 25 14:00:38 2016 +0200
Fixed wrong parameter
---
modules/automation.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/automation.py b/modules/automation.py
index c44b3bd..fc3a492 100644
--- a/modules/automation.py
+++ b/modules/automation.py
@@ -1090,7 +1090,8 @@ def load_resource_file(macros):
# here. We could read the Nagios resource.cfg file, but we do not
# know for sure the place of that either.
def replace_core_macros(hostname, commandline):
- macros = get_host_macros_from_attributes(hostname, get_host_attributes(hostname))
+ macros = get_host_macros_from_attributes(hostname,
+ get_host_attributes(hostname, tags_of_host(hostname)))
load_resource_file(macros)
for varname, value in macros.items():
commandline = commandline.replace(varname, str(value))