Skip to content

Commit 4557b07

Browse files
committed
revert check added in first commit
1 parent 0096e21 commit 4557b07

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

server/src/main/java/com/cloud/user/AccountManagerImpl.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,12 +1000,6 @@ protected boolean cleanupAccount(AccountVO account, long callerUserId, Account c
10001000
}
10011001

10021002
for (UserVmVO vm : vms) {
1003-
if (vm.isDeleteProtection()) {
1004-
logger.warn("Instance [id = {}, name = {}] has delete protection enabled and cannot be deleted.",
1005-
vm.getUuid(), vm.getName());
1006-
continue;
1007-
}
1008-
10091003
if (vm.getState() != VirtualMachine.State.Destroyed && vm.getState() != VirtualMachine.State.Expunging) {
10101004
try {
10111005
_vmMgr.destroyVm(vm.getId(), false);

0 commit comments

Comments
 (0)