Fix a problem for Xen resource when it handles VPN command

This commit is contained in:
Kelven Yang 2010-12-06 14:41:19 -08:00
parent ab98a1d553
commit 904bb3ea26
1 changed files with 1 additions and 1 deletions

View File

@ -1285,8 +1285,8 @@ public abstract class CitrixResourceBase implements StoragePoolResource, ServerR
}
protected synchronized Answer execute(final VpnUsersCfgCommand cmd) {
String args = cmd.getRouterPrivateIpAddress();
for (VpnUsersCfgCommand.UsernamePassword userpwd: cmd.getUserpwds()) {
String args = cmd.getRouterPrivateIpAddress();
if (!userpwd.isAdd()) {
args += " -U " + userpwd.getUsername();
} else {