Fix azure listNodes

This commit is contained in:
Simone Locci 2018-12-20 14:30:50 +01:00 committed by Dani Estevez
parent 2eede280d2
commit 4c18ca777f
1 changed files with 2 additions and 2 deletions

View File

@ -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());
}
}));
}