]> git.openstreetmap.org Git - dns.git/commitdiff
If pingdom support is enabled treat servers with no ID as down
authorTom Hughes <tom@compton.nu>
Thu, 11 Sep 2014 11:26:44 +0000 (12:26 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 11 Sep 2014 11:26:44 +0000 (12:26 +0100)
bin/mkgeo

index 7b70c2240020ebdd007ed2f08547225702b66fa6..5a0b07a11fccd95851e48e9fb02b362d4aa541e6 100755 (executable)
--- a/bin/mkgeo
+++ b/bin/mkgeo
@@ -94,6 +94,10 @@ if ($ENV{PINGDOM_USERNAME} && $ENV{PINGDOM_PASSWORD})
                 $server->{status} = $cache->{$server->{pingdom}} || "down";
             }
         }
+        else
+        {
+            $server->{status} = "down";
+        }
     }
 
     YAML::DumpFile("pingdom.yml", $cache);