mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
Bug 13802: Log VPN user remove usage event when user fails to get applied
Status 13802: resolved fixed Reviewed-By: Nitin
This commit is contained in:
parent
ced6fd46b8
commit
74ce678baf
@ -484,7 +484,12 @@ public class RemoteAccessVpnManagerImpl implements RemoteAccessVpnService, Manag
|
||||
}
|
||||
} else {
|
||||
if (user.getState() == State.Add) {
|
||||
Transaction txn = Transaction.currentTxn();
|
||||
txn.start();
|
||||
_vpnUsersDao.remove(user.getId());
|
||||
UsageEventVO usageEvent = new UsageEventVO(EventTypes.EVENT_VPN_USER_REMOVE, user.getAccountId(), 0, user.getId(), user.getUsername());
|
||||
_usageEventDao.persist(usageEvent);
|
||||
txn.commit();
|
||||
}
|
||||
s_logger.warn("Failed to apply vpn for user " + user.getUsername() + ", accountId=" + user.getAccountId());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user