]> granicus.if.org Git - icinga2/commitdiff
Reword nodeutility output
authorJean Flach <jean-marcel.flach@netways.de>
Tue, 20 Oct 2015 10:56:26 +0000 (12:56 +0200)
committerJean Flach <jean-marcel.flach@netways.de>
Tue, 20 Oct 2015 10:56:26 +0000 (12:56 +0200)
The old comment had a few minor problems:
* Two spaces after 'named'
* No space between // and the begining of the message
* Incorrect capitalization

And one major:
* Incorrectly calling a zone a node

But all of this is subject to change through the use of the configwriter
anyways.

fixes #10406

lib/cli/nodeutility.cpp

index b526bf717ad51dce820aa350c379010f582b500c..bd77c2679564b59c14b509f092bfcb0f194289e7 100644 (file)
@@ -314,7 +314,7 @@ int NodeUtility::GenerateNodeIcingaConfig(const std::vector<std::string>& endpoi
        my_zone->Set("__name", zonename);
        my_zone->Set("__type", "Zone");
        my_zone->Set("parent", master_zone_name); //set the master zone as parent
-       my_zone->Set("//this is the local node", nodename);
+       my_zone->Set("// This is the local node", nodename);
        my_zone->Set("endpoints", my_zone_members);
 
        /* store the local config */
@@ -345,7 +345,7 @@ int NodeUtility::GenerateNodeMasterIcingaConfig(const String& nodename)
 
        my_master_zone->Set("__name", "master");
        my_master_zone->Set("__type", "Zone");
-       my_master_zone->Set("//this is the local node master named ", "master");
+       my_master_zone->Set("// This is the local master zone", "master");
        my_master_zone->Set("endpoints", my_master_zone_members);
 
        /* store the local config */