diff --git a/src/Propellor/Property/Hostname.hs b/src/Propellor/Property/Hostname.hs index 8d98eca..1cce4e6 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] ]