diff options
| author | Joey Hess <joeyh@joeyh.name> | 2014-12-08 01:06:19 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2014-12-08 01:06:19 -0400 |
| commit | 1d02d589c79781cc4b0bd82467edbdf64c40f34d (patch) | |
| tree | daa3e9b20efa1e9ba013bfac8be1c2ed94df8edc /src/Propellor/Property/Firewall.hs | |
| parent | 27d00296ec549e17ec94125dc82fb9f2fb0fb34f (diff) | |
propellor spin
Diffstat (limited to 'src/Propellor/Property/Firewall.hs')
| -rw-r--r-- | src/Propellor/Property/Firewall.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Propellor/Property/Firewall.hs b/src/Propellor/Property/Firewall.hs index b660207b..3018f989 100644 --- a/src/Propellor/Property/Firewall.hs +++ b/src/Propellor/Property/Firewall.hs @@ -33,8 +33,7 @@ rule c t rs = property ("firewall rule: " <> show r) addIpTable exist <- boolSystem "iptables" (chk args) if exist then return NoChange - else ifM (boolSystem "iptables" (add args)) - ( return MadeChange , return FailedChange) + else toResult <$> boolSystem "iptables" (add args) add params = (Param "-A") : params chk params = (Param "-C") : params |
