Repository: jclouds Updated Branches: refs/heads/master 33d326620 -> 2d9bb9342
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/2d9bb934 Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/2d9bb934 Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/2d9bb934 Branch: refs/heads/master Commit: 2d9bb9342792cc90ccab5675625c373a7c7c9504 Parents: 33d3266 Author: Simone Locci <[email protected]> Authored: Thu Dec 20 14:30:50 2018 +0100 Committer: Dani Estevez <[email protected]> Committed: Fri Dec 28 16:16:37 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/2d9bb934/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()); } })); }
