summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Hostname.hs
diff options
context:
space:
mode:
authorJoey Hess2014-07-06 12:27:05 -0400
committerJoey Hess2014-07-06 12:27:05 -0400
commit9f781db6daaff6f6cbc8d50d57bea0c188d3a0fa (patch)
treea5c7adfb669d8bbd69e6b99ef56dd44d76f7f797 /src/Propellor/Property/Hostname.hs
parentdbfa9b5051e73b4c0d8f22d5a859b8ae6d67417e (diff)
propellor spin
Diffstat (limited to 'src/Propellor/Property/Hostname.hs')
-rw-r--r--src/Propellor/Property/Hostname.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/Property/Hostname.hs b/src/Propellor/Property/Hostname.hs
index 8d98eca9..1cce4e60 100644
--- a/src/Propellor/Property/Hostname.hs
+++ b/src/Propellor/Property/Hostname.hs
@@ -26,7 +26,7 @@ setTo hn = combineProperties desc go
[ Just $ "/etc/hostname" `File.hasContent` [basehost]
, if null domain
then Nothing
- else Just $ hostsline "127.0.1.1" [hn, basehost]
+ else Just $ trivial $ hostsline "127.0.1.1" [hn, basehost]
, Just $ trivial $ hostsline "127.0.0.1" ["localhost"]
, Just $ trivial $ cmdProperty "hostname" [basehost]
]