diff options
| author | Joey Hess <joeyh@joeyh.name> | 2016-03-07 18:23:20 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2016-03-07 18:23:20 -0400 |
| commit | 89f9b3cbe16d708912c91db76ed6a2d5cf9851b2 (patch) | |
| tree | c4ad9a2b8d7a2e719288e6d38b537d31d1b7633a /src/Propellor/Property/Munin.hs | |
| parent | 6eb4f7a2f9bbabc5c606f624e9b8380a16224690 (diff) | |
| parent | 9556734c02a0b05764e83419ae72710908419cdc (diff) | |
Merge branch 'joeyconfig'
Diffstat (limited to 'src/Propellor/Property/Munin.hs')
| -rw-r--r-- | src/Propellor/Property/Munin.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Propellor/Property/Munin.hs b/src/Propellor/Property/Munin.hs index 43112a6c..2464985a 100644 --- a/src/Propellor/Property/Munin.hs +++ b/src/Propellor/Property/Munin.hs @@ -47,10 +47,9 @@ hostListFragment' hs os = concatMap muninHost hs muninHost :: Host -> [String] muninHost h = [ "[" ++ (hostName h) ++ "]" , " address " ++ maybe (hostName h) (fromIPAddr . fst) (hOverride h) - ] ++ (maybe [] (\x -> [" port " ++ (show $ fromPort $ snd x)]) (hOverride h)) ++ [""] + ] ++ (maybe [] (\x -> [" port " ++ (fromPort $ snd x)]) (hOverride h)) ++ [""] hOverride :: Host -> Maybe (IPAddr, Port) hOverride h = lookup (hostName h) os - fromPort (Port p) = p -- | Create the host list fragment for master config. hostListFragment :: [Host] -> [String] |
