weizhouapache commented on code in PR #9840: URL: https://github.com/apache/cloudstack/pull/9840#discussion_r1830811771
########## server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java: ########## @@ -2428,7 +2428,7 @@ protected void checkIfZoneIsDeletable(final long zoneId) { // Check if there are any non-removed hosts in the zone. - if (!_hostDao.listByDataCenterId(zoneId).isEmpty()) { + if (!_hostDao.listEnabledIdsByDataCenterId(zoneId).isEmpty()) { Review Comment: OK, if the current behavior is same, let's keep it -- 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