|
43 | 43 | import org.apache.cloudstack.engine.subsystem.api.storage.CreateCmdResult; |
44 | 44 | import org.apache.cloudstack.engine.subsystem.api.storage.DataMotionService; |
45 | 45 | import org.apache.cloudstack.engine.subsystem.api.storage.DataObject; |
46 | | -import org.apache.cloudstack.engine.subsystem.api.storage.DataStoreProvider; |
47 | 46 | import org.apache.cloudstack.engine.subsystem.api.storage.DataStore; |
48 | 47 | import org.apache.cloudstack.engine.subsystem.api.storage.DataStoreCapabilities; |
49 | 48 | import org.apache.cloudstack.engine.subsystem.api.storage.DataStoreDriver; |
@@ -1342,13 +1341,11 @@ private void createManagedVolumeCopyTemplateAsync(VolumeInfo volumeInfo, Primary |
1342 | 1341 | primaryDataStore.setDetails(details); |
1343 | 1342 |
|
1344 | 1343 | grantAccess(volumeInfo, destHost, primaryDataStore); |
1345 | | - if (DataStoreProvider.ONTAP_PLUGIN_NAME.equals(primaryDataStore.getStorageProviderName())) { |
1346 | | - volumeInfo = volFactory.getVolume(volumeInfo.getId(), primaryDataStore); |
1347 | | - // For Netapp ONTAP iscsiName or Lun path is available only after grantAccess |
1348 | | - String managedStoreTarget = ObjectUtils.defaultIfNull(volumeInfo.get_iScsiName(), volumeInfo.getUuid()); |
1349 | | - details.put(PrimaryDataStore.MANAGED_STORE_TARGET, managedStoreTarget); |
1350 | | - primaryDataStore.setDetails(details); |
1351 | | - } |
| 1344 | + volumeInfo = volFactory.getVolume(volumeInfo.getId(), primaryDataStore); |
| 1345 | + // For Netapp ONTAP iscsiName or Lun path is available only after grantAccess |
| 1346 | + String managedStoreTarget = ObjectUtils.defaultIfNull(volumeInfo.get_iScsiName(), volumeInfo.getUuid()); |
| 1347 | + details.put(PrimaryDataStore.MANAGED_STORE_TARGET, managedStoreTarget); |
| 1348 | + primaryDataStore.setDetails(details); |
1352 | 1349 |
|
1353 | 1350 | try { |
1354 | 1351 | motionSrv.copyAsync(srcTemplateInfo, destTemplateInfo, destHost, caller); |
|
0 commit comments