Fix munin-config to work if no monitoring hosts are configured.
authorEvan Broder <broder@mit.edu>
Thu, 28 Jan 2010 05:11:24 +0000 (00:11 -0500)
committerEvan Broder <broder@mit.edu>
Thu, 28 Jan 2010 05:11:24 +0000 (00:11 -0500)
svn path=/trunk/packages/xvm-munin-config/; revision=2965

debian/changelog
debian/transform_munin-node.conf.xvm.mako

index 0c0222c..c2b1ee7 100644 (file)
@@ -1,3 +1,10 @@
+xvm-munin-config (0.0.10) unstable; urgency=low
+
+  * Make the munin-node.conf Mako template render even if no monitoring
+    hosts are configured.
+
+ -- Evan Broder <broder@mit.edu>  Thu, 28 Jan 2010 00:11:14 -0500
+
 xvm-munin-config (0.0.9) unstable; urgency=low
 
   * Added a clean target.
index 2572e76..a6955df 100755 (executable)
@@ -19,7 +19,7 @@ print unless /^$/;
 
 END {
   print <<'EOF';
-% for host in cfg.monitoring:
+% for host in cfg.get('monitoring', []):
 allow ^${host.ip.replace('.', '\.')}$
 % endfor
 EOF