Skip to content

Commit 50aff1b

Browse files
Gupta, SuryaGupta, Surya
authored andcommitted
CSTACKEX-16 Fix Copy Issues
1 parent 4fdda63 commit 50aff1b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/driver/OntapPrimaryDatastoreDriver.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,9 +540,7 @@ private void grantAccessForSnapshot(SnapshotInfo snapshotInfo, Host host, Storag
540540
if (ProtocolType.ISCSI.name().equalsIgnoreCase(details.get(Constants.PROTOCOL))) {
541541
String svmName = details.get(Constants.SVM_NAME);
542542
String storagePoolUuid = storagePool.getUuid();
543-
544-
// snapshotInfo.getPath() contains the cloned LUN name set during takeSnapshot()
545-
String snapshotLunName = snapshotInfo.getPath();
543+
String snapshotLunName = snapshotInfo.getName();
546544
if (snapshotLunName == null) {
547545
throw new CloudRuntimeException("grantAccessForSnapshot: Snapshot path (LUN name) is null for snapshot id: " + snapshotInfo.getId());
548546
}

0 commit comments

Comments
 (0)