Select the default virtual network when creating a new virtual machine

This commit is contained in:
andreisavu 2011-11-15 17:03:23 +02:00
parent ef2c2277d0
commit e74d58634c
1 changed files with 1 additions and 1 deletions

View File

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