mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 01:32:18 +02:00
Improve the error throws when a template to owned by a non root-admin is registered for all zones. (#11170)
This commit is contained in:
parent
67a1ea35f4
commit
7715b3dc29
@ -192,7 +192,8 @@ public abstract class TemplateAdapterBase extends AdapterBase implements Templat
|
||||
|
||||
if (!isAdmin && zoneIdList == null && !isRegionStore ) {
|
||||
// domain admin and user should also be able to register template on a region store
|
||||
throw new InvalidParameterValueException("Please specify a valid zone Id. Only admins can create templates in all zones.");
|
||||
throw new InvalidParameterValueException("Template registered for 'All zones' can only be owned a Root Admin account. " +
|
||||
"Please select specific zone(s).");
|
||||
}
|
||||
|
||||
// check for the url format only when url is not null. url can be null incase of form based upload
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user