File tree Expand file tree Collapse file tree
core/src/com/cloud/storage/resource Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ protected Answer execute(CopyCommand cmd) {
6868 DataStoreTO srcDataStore = srcData .getDataStore ();
6969 DataStoreTO destDataStore = destData .getDataStore ();
7070
71- if (( srcData .getObjectType () == DataObjectType .TEMPLATE ) && ( destData . getObjectType () == DataObjectType . TEMPLATE && destData .getDataStore ().getRole () == DataStoreRole .Primary ) ) {
71+ if (srcData .getObjectType () == DataObjectType .TEMPLATE && srcData . getDataStore (). getRole () == DataStoreRole . Image && destData .getDataStore ().getRole () == DataStoreRole .Primary ) {
7272 //copy template to primary storage
7373 return processor .copyTemplateToPrimaryStorage (cmd );
7474 } else if (srcData .getObjectType () == DataObjectType .TEMPLATE && srcDataStore .getRole () == DataStoreRole .Primary && destDataStore .getRole () == DataStoreRole .Primary ) {
You can’t perform that action at this time.
0 commit comments