File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
server/src/main/java/com/cloud/template Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -2108,6 +2108,9 @@ private VMTemplateVO updateTemplateOrIso(BaseUpdateTemplateOrIsoCmd cmd) {
21082108 if (templateType != null && cmd .isRoutingType () != null && (TemplateType .ROUTING .equals (templateType ) != cmd .isRoutingType ())) {
21092109 throw new InvalidParameterValueException ("Please specify a valid templatetype (consistent with isrouting parameter)." );
21102110 }
2111+ if (templateType != null && (templateType == TemplateType .SYSTEM || templateType == TemplateType .BUILTIN ) && !template .isCrossZones ()) {
2112+ throw new InvalidParameterValueException ("System and Builtin templates must be cross zone" );
2113+ }
21112114 }
21122115
21132116 // update is needed if any of the fields below got filled by the user
You can’t perform that action at this time.
0 commit comments