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 cd5e0e9b88..bcf3e4f38a 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() { @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() { @Override public boolean apply(VirtualMachine input) { - return regionIds.get().contains(input.location()); + return regionIds.get().isEmpty() || regionIds.get().contains(input.location()); } })); }