summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Dns.hs
diff options
context:
space:
mode:
authorJoey Hess2014-05-31 20:48:23 -0400
committerJoey Hess2014-05-31 20:48:23 -0400
commit58c8d74b4c4917f9f5e566709202ad432a7b2a6f (patch)
tree65da63c631e875a1bf074da920e145d07d011698 /src/Propellor/Property/Dns.hs
parente133536c3f7cc4dd816b8c5fe97e3131411a5ae9 (diff)
simplified record accessors
Diffstat (limited to 'src/Propellor/Property/Dns.hs')
-rw-r--r--src/Propellor/Property/Dns.hs6
1 files changed, 3 insertions, 3 deletions
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