summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFélix Sipma2016-06-20 18:15:50 +0200
committerFélix Sipma2016-06-20 18:15:50 +0200
commitd545ca394d423dab2f3c04b28adaca48ed04bf27 (patch)
tree5e71d7387cb7e84d901f91dd4cfacd1f1b064135
parent3a851213ad440476a37d2a318c4371b9e2c34ce2 (diff)
ConfFile.hasIniSection: add missing header
-rw-r--r--src/Propellor/Property/ConfFile.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/Property/ConfFile.hs b/src/Propellor/Property/ConfFile.hs
index d91c7724..54762689 100644
--- a/src/Propellor/Property/ConfFile.hs
+++ b/src/Propellor/Property/ConfFile.hs
@@ -106,7 +106,7 @@ hasIniSection f header keyvalues =
where
confheader = iniHeader header
conflines = map (\(key, value) -> key ++ "=" ++ value) keyvalues
- go _ = conflines
+ go _ = [confheader] ++ conflines
-- | Ensures that a .ini file does not contain the specified section.
lacksIniSection :: FilePath -> IniSection -> Property UnixLike