Github user karuturi commented on the issue:
https://github.com/apache/cloudstack/pull/1818
@ustcweizhou in the above snippet, its adding the zoneid if its not
cross-zone. if no zoneid is provided, it will default to -1 which means cross
zone. So, this check is required.
This fix is just enhancing the message if its a cross-zone template. Its
not trying to do the delete only in that zone. That is not possible.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---