mirror of https://github.com/apache/jclouds.git
Fix azure listNodes
This commit is contained in:
parent
2eede280d2
commit
4c18ca777f
|
@ -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());
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue