From 58c8d74b4c4917f9f5e566709202ad432a7b2a6f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 31 May 2014 20:48:23 -0400 Subject: simplified record accessors --- src/Propellor/Property/Dns.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Propellor/Property/Dns.hs') diff --git a/src/Propellor/Property/Dns.hs b/src/Propellor/Property/Dns.hs index 44378491..3e5c7828 100644 --- a/src/Propellor/Property/Dns.hs +++ b/src/Propellor/Property/Dns.hs @@ -352,11 +352,11 @@ genZone hosts zdomain soa = -- so warn. hostips :: Host -> [Either WarningMessage (BindDomain, Record)] hostips h - | null l = [Left $ "no IP address defined for host " ++ _hostName h] + | null l = [Left $ "no IP address defined for host " ++ hostName h] | otherwise = map Right l where attr = hostAttr h - l = zip (repeat $ AbsDomain $ _hostName h) + l = zip (repeat $ AbsDomain $ hostName h) (map Address $ getAddresses attr) -- Any host, whether its hostname is in the zdomain or not, @@ -387,7 +387,7 @@ genZone hosts zdomain soa = hostrecords h = map Right l where attr = hostAttr h - l = zip (repeat $ AbsDomain $ _hostName h) + l = zip (repeat $ AbsDomain $ hostName h) (S.toList $ S.filter (\r -> isNothing (getIPAddr r) && isNothing (getCNAME r)) (_dns attr)) inDomain :: Domain -> BindDomain -> Bool -- cgit v1.3-2-g0d8e