mirror of https://github.com/apache/cloudstack.git
bug 11851: When Add VPN user fails, remove the user entry from db instead of leaving in Add state.
status 11851: resolved fixed reviewed-by: Abhi
This commit is contained in:
parent
0785b64306
commit
606779b300
|
|
@ -442,6 +442,9 @@ public class RemoteAccessVpnManagerImpl implements RemoteAccessVpnService, Manag
|
|||
_vpnUsersDao.remove(user.getId());
|
||||
}
|
||||
} else {
|
||||
if (user.getState() == State.Add) {
|
||||
_vpnUsersDao.remove(user.getId());
|
||||
}
|
||||
s_logger.warn("Failed to apply vpn for user " + user.getUsername() + ", accountId=" + user.getAccountId());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue