CLOUDSTACK-4451: more descriptive error message to associateIpAddress API call identifying why zoneId can't be figured out

This commit is contained in:
Alena Prokharchyk 2014-07-24 13:59:57 -07:00
parent 59f25d2436
commit e15c20ec05

View File

@ -142,7 +142,8 @@ public class AssociateIPAddrCmd extends BaseAsyncCreateCmd {
} }
} }
throw new InvalidParameterValueException("Unable to figure out zone to assign ip to"); throw new InvalidParameterValueException("Unable to figure out zone to assign ip to."
+ " Please specify either zoneId, or networkId, or vpcId in the call");
} }
public Long getVpcId() { public Long getVpcId() {