brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [19/21] incubator-brooklyn git commit: Fix DNS entity reverse lookup domain
Date Sat, 15 Nov 2014 00:05:28 GMT
Fix DNS entity reverse lookup domain


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/3d3a8f49
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/3d3a8f49
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/3d3a8f49

Branch: refs/heads/master
Commit: 3d3a8f495f82dc40469a96659b61f871a0e096c5
Parents: 8ebeebb
Author: Sam Corbett <sam.corbett@cloudsoftcorp.com>
Authored: Fri Nov 14 21:40:02 2014 +0000
Committer: Sam Corbett <sam.corbett@cloudsoftcorp.com>
Committed: Fri Nov 14 21:40:02 2014 +0000

----------------------------------------------------------------------
 .../main/java/brooklyn/entity/network/bind/BindDnsServerImpl.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/3d3a8f49/software/network/src/main/java/brooklyn/entity/network/bind/BindDnsServerImpl.java
----------------------------------------------------------------------
diff --git a/software/network/src/main/java/brooklyn/entity/network/bind/BindDnsServerImpl.java
b/software/network/src/main/java/brooklyn/entity/network/bind/BindDnsServerImpl.java
index fc570aa..5eb12a7 100644
--- a/software/network/src/main/java/brooklyn/entity/network/bind/BindDnsServerImpl.java
+++ b/software/network/src/main/java/brooklyn/entity/network/bind/BindDnsServerImpl.java
@@ -164,7 +164,8 @@ public class BindDnsServerImpl extends SoftwareProcessImpl implements
BindDnsSer
         String reverse = getConfig(REVERSE_LOOKUP_NETWORK);
         if (Strings.isBlank(reverse)) reverse = getAttribute(ADDRESS);
         setAttribute(REVERSE_LOOKUP_CIDR, new Cidr(reverse + "/24"));
-        String reverseLookupDomain = Iterables.toString(Iterables.skip(Lists.reverse(Lists.newArrayList(Splitter.on('.').split(reverse))),
1)) + ".in-addr.arpa";
+        String reverseLookupDomain = Joiner.on('.').join(Iterables.skip(Lists.reverse(Lists.newArrayList(
+                Splitter.on('.').split(reverse))), 1)) + ".in-addr.arpa";
         setAttribute(REVERSE_LOOKUP_DOMAIN, reverseLookupDomain);
 
         addPolicy(PolicySpec.create(MemberTrackingPolicy.class)


Mime
View raw message