[icinga-checkins] icinga.org: icinga2/mfriedrich/config: ConfigConvert: *interval, max_check_attempts dumped as numbers

git at icinga.org git at icinga.org
Mon Apr 8 11:20:15 CEST 2013


Module: icinga2
Branch: mfriedrich/config
Commit: 5d2a15c3f446577190121552eaba74d6171d5c67
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=5d2a15c3f446577190121552eaba74d6171d5c67

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Fri Apr  5 17:30:20 2013 +0200

ConfigConvert: *interval, max_check_attempts dumped as numbers

see
https://git.icinga.org/?p=icinga2.git;a=blob_plain;f=lib/icinga/icinga-type.conf;hb=HEAD

refs #2743

---

 contrib/configconvert/Icinga2/DumpIcinga2Cfg.pm |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/contrib/configconvert/Icinga2/DumpIcinga2Cfg.pm b/contrib/configconvert/Icinga2/DumpIcinga2Cfg.pm
index 1f6b14b..6488f70 100644
--- a/contrib/configconvert/Icinga2/DumpIcinga2Cfg.pm
+++ b/contrib/configconvert/Icinga2/DumpIcinga2Cfg.pm
@@ -120,13 +120,13 @@ sub dump_service_2x {
     # other service attributes, if set
     ####################################################
     if(defined($service_2x->{'check_interval'})) {
-        dump_config_line("\tcheck_interval = \"$service_2x->{'check_interval'}\",");
+        dump_config_line("\tcheck_interval = $service_2x->{'check_interval'},");
     }
     if(defined($service_2x->{'retry_interval'})) {
-        dump_config_line("\tretry_interval = \"$service_2x->{'retry_interval'}\",");
+        dump_config_line("\tretry_interval = $service_2x->{'retry_interval'},");
     }
     if(defined($service_2x->{'max_check_attempts'})) {
-        dump_config_line("\tmax_check_attempts = \"$service_2x->{'max_check_attempts'}\",");
+        dump_config_line("\tmax_check_attempts = $service_2x->{'max_check_attempts'},");
     }
 
     if(defined($service_2x->{'action_url'})) {
@@ -214,13 +214,13 @@ sub dump_host_2x {
     # other host attributes, if set
     ####################################################
     if(defined($host_2x->{'check_interval'})) {
-        dump_config_line("\tcheck_interval = \"$host_2x->{'check_interval'}\",");
+        dump_config_line("\tcheck_interval = $host_2x->{'check_interval'},");
     }
     if(defined($host_2x->{'retry_interval'})) {
-        dump_config_line("\tretry_interval = \"$host_2x->{'retry_interval'}\",");
+        dump_config_line("\tretry_interval = $host_2x->{'retry_interval'},");
     }
     if(defined($host_2x->{'max_check_attempts'})) {
-        dump_config_line("\tmax_check_attempts = \"$host_2x->{'max_check_attempts'}\",");
+        dump_config_line("\tmax_check_attempts = $host_2x->{'max_check_attempts'},");
     }
 
     if(defined($host_2x->{'action_url'})) {
@@ -311,13 +311,13 @@ sub dump_host_2x {
         # other service attributes, if set
         ####################################################
         if(defined($service_2x->{'check_interval'})) {
-            dump_config_line("\t\tcheck_interval = \"$service_2x->{'check_interval'}\",");
+            dump_config_line("\t\tcheck_interval = $service_2x->{'check_interval'},");
         }
         if(defined($service_2x->{'retry_interval'})) {
-            dump_config_line("\t\tretry_interval = \"$service_2x->{'retry_interval'}\",");
+            dump_config_line("\t\tretry_interval = $service_2x->{'retry_interval'},");
         }
         if(defined($service_2x->{'max_check_attempts'})) {
-            dump_config_line("\t\tmax_check_attempts = \"$service_2x->{'max_check_attempts'}\",");
+            dump_config_line("\t\tmax_check_attempts = $service_2x->{'max_check_attempts'},");
         }
 
         if(defined($service_2x->{'action_url'})) {





More information about the icinga-checkins mailing list