sudo87 commented on PR #12901:
URL: https://github.com/apache/cloudstack/pull/12901#issuecomment-4168558361

   Hi @daviftorres, I am yet to start on preventing VM deletion if they are 
deletion protected during Domain cleanup. 
   
   To answer you ques, its not raw domain deletion. There are checks performed 
before mentioned statement is executed.
   
   
https://github.com/apache/cloudstack/blob/4f93ba888c36d992c09af8d2486ea4ec75102f79/server/src/main/java/com/cloud/user/AccountManagerImpl.java#L2622-L2641
   
   And event is published for domain removal:
   
   
[[publishRemoveEventsAndRemoveDomain](https://github.com/apache/cloudstack/blob/4f93ba888c36d992c09af8d2486ea4ec75102f79/server/src/main/java/com/cloud/user/DomainManagerImpl.java#L711-L714)](https://github.com/apache/cloudstack/blob/4f93ba888c36d992c09af8d2486ea4ec75102f79/server/src/main/java/com/cloud/user/DomainManagerImpl.java#L524-L533)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to