]> granicus.if.org Git - icinga2/commitdiff
Fix wrong host/node name in update-config blacklist
authorMichael Friedrich <michael.friedrich@netways.de>
Fri, 9 Jan 2015 13:25:45 +0000 (14:25 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Fri, 9 Jan 2015 13:25:45 +0000 (14:25 +0100)
fixes #8181

lib/cli/nodeupdateconfigcommand.cpp

index ba611d767f923cf8f2348ed8d8e67ee960eea13a..9d695290e99c7b83222724bd9343d5d417af9581 100644 (file)
@@ -159,7 +159,7 @@ int NodeUpdateConfigCommand::Run(const boost::program_options::variables_map& vm
                                                if (NodeUtility::CheckAgainstBlackAndWhiteList("blacklist", old_node_name, old_host, Empty) &&
                                                    !NodeUtility::CheckAgainstBlackAndWhiteList("whitelist", old_node_name, old_host, Empty)) {
                                                        Log(LogWarning, "cli")
-                                                           << "Host '" << old_node << "' on node '" << old_node << "' is blacklisted, but not whitelisted. Skipping.";
+                                                           << "Host '" << old_node_name << "' on node '" << old_node_name << "' is blacklisted, but not whitelisted. Skipping.";
                                                        continue;
                                                }