mirror of https://github.com/apache/cloudstack.git
bug 6694: trim spaces for destPortStart/destPortEnd
status 6694: resolved fixed
This commit is contained in:
parent
0e9ab0ee6a
commit
80f6db937f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue