mirror of https://github.com/apache/jclouds.git
Merge pull request #155 from andreisavu/select-default-network
Select the default virtual network when creating a new virtual machine
This commit is contained in:
commit
5ce8b4177c
|
@ -111,7 +111,7 @@ public class CloudStackComputeServiceAdapter implements
|
|||
|
||||
@Override
|
||||
public boolean apply(Network arg0) {
|
||||
return arg0.getZoneId() == zoneId;
|
||||
return arg0.getZoneId() == zoneId && arg0.isDefault();
|
||||
}
|
||||
|
||||
})).getId());
|
||||
|
|
Loading…
Reference in New Issue