Skip to content

Commit d11b647

Browse files
Srivastava, PiyushSrivastava, Piyush
authored andcommitted
Commit 11
1 parent af4853a commit d11b647

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,8 @@ private String createManagedNfsVolume(DataStore dataStore, DataObject dataObject
255255
Map<String, String> details = storagePoolDetailsDao.listDetailsKeyPairs(dataStore.getId());
256256
StorageStrategy storageStrategy = getStrategyByStoragePoolDetails(details);
257257

258-
String incomingName = "cloudstack_vol_" + volumeInfo.getName();
259-
String sanitizedName = incomingName.replace('-', '_'); // replaces all '-' with '_'
260-
String ontapVolumeName = "cloudstack_vol_" + sanitizedName;
258+
String sanitizedName = volumeInfo.getName().replace('-', '_'); // "DATA_4"
259+
String ontapVolumeName = "cloudstack_vol_" + sanitizedName; // "cloudstack_vol_DATA_4"
261260
String junctionPath = "/" + ontapVolumeName;
262261
long sizeInBytes = volumeInfo.getSize();
263262

0 commit comments

Comments
 (0)