jclouds-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deste...@apache.org
Subject jclouds git commit: Fix azure listNodes
Date Fri, 28 Dec 2018 21:18:56 GMT
Repository: jclouds
Updated Branches:
  refs/heads/2.1.x 2eede280d -> 4c18ca777


Fix azure listNodes


Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/4c18ca77
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/4c18ca77
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/4c18ca77

Branch: refs/heads/2.1.x
Commit: 4c18ca777fb5ea4a794ad25049e4701c9565bc73
Parents: 2eede28
Author: Simone Locci <simone.locci@cloudesire.com>
Authored: Thu Dec 20 14:30:50 2018 +0100
Committer: Dani Estevez <contact@danielestevez.com>
Committed: Fri Dec 28 16:17:42 2018 -0500

----------------------------------------------------------------------
 .../azurecompute/arm/compute/AzureComputeServiceAdapter.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds/blob/4c18ca77/providers/azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/compute/AzureComputeServiceAdapter.java
----------------------------------------------------------------------
diff --git a/providers/azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/compute/AzureComputeServiceAdapter.java
b/providers/azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/compute/AzureComputeServiceAdapter.java
index cd5e0e9..bcf3e4f 100644
--- a/providers/azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/compute/AzureComputeServiceAdapter.java
+++ b/providers/azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/compute/AzureComputeServiceAdapter.java
@@ -235,7 +235,7 @@ public class AzureComputeServiceAdapter implements ComputeServiceAdapter<Virtual
             filter(customImgs, new Predicate<org.jclouds.azurecompute.arm.domain.Image>()
{
                @Override
                public boolean apply(org.jclouds.azurecompute.arm.domain.Image input) {
-                  return regionIds.get().contains(input.location());
+                  return regionIds.get().isEmpty() || regionIds.get().contains(input.location());
                }
             }), customImagetoVmImage));
    }
@@ -357,7 +357,7 @@ public class AzureComputeServiceAdapter implements ComputeServiceAdapter<Virtual
          nodes.addAll(filter(vms, new Predicate<VirtualMachine>() {
             @Override
             public boolean apply(VirtualMachine input) {
-               return regionIds.get().contains(input.location());
+               return regionIds.get().isEmpty() || regionIds.get().contains(input.location());
             }
          }));
       }


Mime
View raw message