From: Evan Broder Date: Thu, 28 Jan 2010 05:11:24 +0000 (-0500) Subject: Fix munin-config to work if no monitoring hosts are configured. X-Git-Tag: 0.0.13~3 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/xvm-munin-config.git/commitdiff_plain/3b7041eaf403cb57a8f41cb767a16f6bb0442726 Fix munin-config to work if no monitoring hosts are configured. svn path=/trunk/packages/xvm-munin-config/; revision=2965 --- diff --git a/debian/changelog b/debian/changelog index 0c0222c..c2b1ee7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Thu, 28 Jan 2010 00:11:14 -0500 + xvm-munin-config (0.0.9) unstable; urgency=low * Added a clean target. diff --git a/debian/transform_munin-node.conf.xvm.mako b/debian/transform_munin-node.conf.xvm.mako index 2572e76..a6955df 100755 --- a/debian/transform_munin-node.conf.xvm.mako +++ b/debian/transform_munin-node.conf.xvm.mako @@ -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