From 80f6db937f0e2ff0d92fa41d58856ca14e5ae433 Mon Sep 17 00:00:00 2001 From: alena Date: Thu, 13 Jan 2011 13:37:43 -0800 Subject: [PATCH] bug 6694: trim spaces for destPortStart/destPortEnd status 6694: resolved fixed --- .../com/cloud/api/commands/CreatePortForwardingRuleCmd.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/com/cloud/api/commands/CreatePortForwardingRuleCmd.java b/api/src/com/cloud/api/commands/CreatePortForwardingRuleCmd.java index 2686617a9fb..e1abdde7d5e 100644 --- a/api/src/com/cloud/api/commands/CreatePortForwardingRuleCmd.java +++ b/api/src/com/cloud/api/commands/CreatePortForwardingRuleCmd.java @@ -69,7 +69,7 @@ public class CreatePortForwardingRuleCmd extends BaseAsyncCreateCmd implements } public String getPrivatePort() { - return privatePort; + return privatePort.trim(); } @Override @@ -178,12 +178,12 @@ public class CreatePortForwardingRuleCmd extends BaseAsyncCreateCmd implements @Override public int getDestinationPortStart() { - return Integer.parseInt(privatePort); + return Integer.parseInt(privatePort.trim()); } @Override public int getDestinationPortEnd() { - return Integer.parseInt(privatePort); + return Integer.parseInt(privatePort.trim()); } @Override