]> git.openstreetmap.org Git - dns.git/blobdiff - bin/mkgeo
If pingdom support is enabled treat servers with no ID as down
[dns.git] / 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);