You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/src/org/apache/cloudstack/api/command/user/template/CopyTemplateCmd.java
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -59,8 +59,7 @@ public class CopyTemplateCmd extends BaseAsyncCmd {
59
59
@Parameter(name = ApiConstants.SOURCE_ZONE_ID,
60
60
type = CommandType.UUID,
61
61
entityType = ZoneResponse.class,
62
-
required = true,
63
-
description = "ID of the zone the template is currently hosted on.")
62
+
description = "ID of the zone the template is currently hosted on. If not specified and template is cross-zone, then we will sync this template to region wide image store.")
s_logger.debug("There is template " + templateId + " in secondary storage " + dstSecStore.getName() + " in zone " + destZoneId + " , don't need to copy");
@@ -1692,6 +1701,18 @@ public DataStore getImageStore(long zoneId, long tmpltId) {
1692
1701
returnnull;
1693
1702
}
1694
1703
1704
+
// get the region wide image store where a template is READY on,
0 commit comments