weizhouapache commented on code in PR #10232:
URL: https://github.com/apache/cloudstack/pull/10232#discussion_r1924806875


##########
server/src/main/java/com/cloud/user/AccountManagerImpl.java:
##########
@@ -850,6 +850,10 @@ protected boolean lockAccount(long accountId) {
     public boolean deleteAccount(AccountVO account, long callerUserId, Account 
caller) {
         long accountId = account.getId();
 
+        if (account.getState() != State.DISABLED) {

Review Comment:
   @abh1sar 
   this is what was concerned about.
   
   for users who do not use cloudstack UI (for example api or terraform, 
ansible), they will have to add an additional step when delete an account.
   
   I advice you to remove the java code changes.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to