adding , as a seperator, as facter 1.5 seems to seperate liket that
authormh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>
Mon, 4 Aug 2008 09:38:17 +0000 (09:38 +0000)
committermh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>
Mon, 4 Aug 2008 09:38:17 +0000 (09:38 +0000)
git-svn-id: https://svn/ipuppet/trunk/modules/munin@2107 d66ca3ae-40d7-4aa7-90d4-87d79ca94279

manifests/plugin.pp

index 4940eaf..741de30 100644 (file)
@@ -168,8 +168,8 @@ class munin::plugins::base {
 # handle if_ and if_err_ plugins
 class munin::plugins::interfaces inherits munin::plugins::base {
 
 # handle if_ and if_err_ plugins
 class munin::plugins::interfaces inherits munin::plugins::base {
 
-       $ifs = gsub(split($interfaces, " "), "(.+)", "if_\\1")
-       $if_errs = gsub(split($interfaces, " "), "(.+)", "if_err_\\1")
+       $ifs = gsub(split($interfaces, " |,"), "(.+)", "if_\\1")
+       $if_errs = gsub(split($interfaces, " |,"), "(.+)", "if_err_\\1")
        munin::plugin {
                $ifs: ensure => "if_";
                $if_errs: ensure => "if_err_";
        munin::plugin {
                $ifs: ensure => "if_";
                $if_errs: ensure => "if_err_";