mirror of
https://github.com/apache/jclouds.git
synced 2025-03-03 06:49:11 +00:00
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…
x
Reference in New Issue
Block a user