You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by dr...@apache.org on 2017/09/08 11:40:45 UTC

[1/2] brooklyn-server git commit: fix npe that can occur with WinRM when no subnet IP, do a better job of returning public IP but above all don't NPE

Repository: brooklyn-server
Updated Branches:
  refs/heads/master 36de666d2 -> 25312b16a


fix npe that can occur with WinRM when no subnet IP, do a better job of returning public IP but above all don't NPE


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/232925f2
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/232925f2
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/232925f2

Branch: refs/heads/master
Commit: 232925f21fa0414984752ed26b25185972a8a30c
Parents: 36de666
Author: Alex Heneveld <al...@cloudsoftcorp.com>
Authored: Fri Sep 8 10:31:17 2017 +0100
Committer: Alex Heneveld <al...@cloudsoftcorp.com>
Committed: Fri Sep 8 10:31:17 2017 +0100

----------------------------------------------------------------------
 .../brooklyn/location/jclouds/JcloudsWinRmMachineLocation.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/232925f2/locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/JcloudsWinRmMachineLocation.java
----------------------------------------------------------------------
diff --git a/locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/JcloudsWinRmMachineLocation.java b/locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/JcloudsWinRmMachineLocation.java
index 127cfc6..d491791 100644
--- a/locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/JcloudsWinRmMachineLocation.java
+++ b/locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/JcloudsWinRmMachineLocation.java
@@ -275,7 +275,10 @@ public class JcloudsWinRmMachineLocation extends WinRmMachineLocation implements
         if (privateAddress.isPresent()) {
             return privateAddress.get();
         }
-        if (groovyTruth(node.getPublicAddresses())) {
+        if (groovyTruth(publicAddresses)) {
+            return publicAddresses.iterator().next();
+        }
+        if (node!=null && groovyTruth(node.getPublicAddresses())) {
             return node.getPublicAddresses().iterator().next();
         }
         return null;


[2/2] brooklyn-server git commit: This closes #811

Posted by dr...@apache.org.
This closes #811


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/25312b16
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/25312b16
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/25312b16

Branch: refs/heads/master
Commit: 25312b16adf61a0fba5a75c4e152f2c79874aa74
Parents: 36de666 232925f
Author: Duncan Godwin <dr...@googlemail.com>
Authored: Fri Sep 8 12:40:38 2017 +0100
Committer: Duncan Godwin <dr...@googlemail.com>
Committed: Fri Sep 8 12:40:38 2017 +0100

----------------------------------------------------------------------
 .../brooklyn/location/jclouds/JcloudsWinRmMachineLocation.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------