From 7cd0077ab5611492d930ad53eb533a447de6567d Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Thu, 18 Jun 2015 19:13:10 +0200 Subject: [PATCH] node setup: indent accept_config and accept_commands fixes #9450 Signed-off-by: Michael Friedrich --- lib/cli/nodesetupcommand.cpp | 11 +++++++---- lib/cli/nodewizardcommand.cpp | 1 + 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/cli/nodesetupcommand.cpp b/lib/cli/nodesetupcommand.cpp index ea6b50d9c..b67da3467 100644 --- a/lib/cli/nodesetupcommand.cpp +++ b/lib/cli/nodesetupcommand.cpp @@ -463,15 +463,18 @@ int NodeSetupCommand::SetupNode(const boost::program_options::variables_map& vm, if (tokens.size() > 1) fp << " bind_port = " << tokens[1] << "\n"; } + + fp << "\n"; + if (vm.count("accept-config")) - fp << "accept_config = true\n"; + fp << " accept_config = true\n"; else - fp << "accept_config = false\n"; + fp << " accept_config = false\n"; if (vm.count("accept-commands")) - fp << "accept_commands = true\n"; + fp << " accept_commands = true\n"; else - fp << "accept_commands = false\n"; + fp << " accept_commands = false\n"; fp << "\n" << " ticket_salt = TicketSalt\n" diff --git a/lib/cli/nodewizardcommand.cpp b/lib/cli/nodewizardcommand.cpp index 5d0566db4..c838706c8 100644 --- a/lib/cli/nodewizardcommand.cpp +++ b/lib/cli/nodewizardcommand.cpp @@ -394,6 +394,7 @@ wizard_ticket: << " cert_path = SysconfDir + \"/icinga2/pki/\" + NodeName + \".crt\"\n" << " key_path = SysconfDir + \"/icinga2/pki/\" + NodeName + \".key\"\n" << " ca_path = SysconfDir + \"/icinga2/pki/ca.crt\"\n" + << "\n" << " accept_config = " << accept_config << "\n" << " accept_commands = " << accept_commands << "\n"; -- 2.40.0