Repository: cloudstack Updated Branches: refs/heads/master 59f25d243 -> e15c20ec0
CLOUDSTACK-4451: more descriptive error message to associateIpAddress API call identifying why zoneId can't be figured out Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/e15c20ec Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e15c20ec Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e15c20ec Branch: refs/heads/master Commit: e15c20ec056df568d8cbbbb406370a708e80e9d8 Parents: 59f25d2 Author: Alena Prokharchyk <[email protected]> Authored: Thu Jul 24 13:59:57 2014 -0700 Committer: Alena Prokharchyk <[email protected]> Committed: Thu Jul 24 14:00:39 2014 -0700 ---------------------------------------------------------------------- .../cloudstack/api/command/user/address/AssociateIPAddrCmd.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e15c20ec/api/src/org/apache/cloudstack/api/command/user/address/AssociateIPAddrCmd.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/api/command/user/address/AssociateIPAddrCmd.java b/api/src/org/apache/cloudstack/api/command/user/address/AssociateIPAddrCmd.java index 96174e1..ae13717 100644 --- a/api/src/org/apache/cloudstack/api/command/user/address/AssociateIPAddrCmd.java +++ b/api/src/org/apache/cloudstack/api/command/user/address/AssociateIPAddrCmd.java @@ -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() {
