Skip to content

Commit a93941a

Browse files
Srivastava, PiyushSrivastava, Piyush
authored andcommitted
test1
1 parent 5c31c78 commit a93941a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

engine/storage/volume/src/main/java/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,8 +1320,7 @@ private void createManagedVolumeCopyTemplateAsync(VolumeInfo volumeInfo, Primary
13201320
details.put(PrimaryDataStore.STORAGE_HOST, primaryDataStore.getHostAddress());
13211321
details.put(PrimaryDataStore.STORAGE_PORT, String.valueOf(primaryDataStore.getPort()));
13221322
// for managed storage, the storage repository (XenServer) or datastore (ESX) name is based off of the iScsiName property of a volume
1323-
String managedStoreTarget = volumeInfo.get_iScsiName() != null ? volumeInfo.get_iScsiName() : volumeInfo.getUuid();
1324-
details.put(PrimaryDataStore.MANAGED_STORE_TARGET, managedStoreTarget);
1323+
details.put(PrimaryDataStore.MANAGED_STORE_TARGET, volumeInfo.get_iScsiName());
13251324
details.put(PrimaryDataStore.MANAGED_STORE_TARGET_ROOT_VOLUME, volumeInfo.getName());
13261325
details.put(PrimaryDataStore.VOLUME_SIZE, String.valueOf(volumeInfo.getSize()));
13271326
details.put(StorageManager.STORAGE_POOL_DISK_WAIT.toString(), String.valueOf(StorageManager.STORAGE_POOL_DISK_WAIT.valueIn(primaryDataStore.getId())));
@@ -1339,8 +1338,7 @@ private void createManagedVolumeCopyTemplateAsync(VolumeInfo volumeInfo, Primary
13391338

13401339
grantAccess(volumeInfo, destHost, primaryDataStore);
13411340
volumeInfo = volFactory.getVolume(volumeInfo.getId(), primaryDataStore);
1342-
managedStoreTarget = volumeInfo.get_iScsiName() != null ? volumeInfo.get_iScsiName() : volumeInfo.getUuid();
1343-
details.put(PrimaryDataStore.MANAGED_STORE_TARGET, managedStoreTarget);
1341+
details.put(PrimaryDataStore.MANAGED_STORE_TARGET, volumeInfo.get_iScsiName());
13441342
primaryDataStore.setDetails(details);
13451343

13461344
// Update destTemplateInfo with the iSCSI path from volumeInfo

0 commit comments

Comments
 (0)