Skip to content

Commit af4853a

Browse files
Srivastava, PiyushSrivastava, Piyush
authored andcommitted
Commit 10
1 parent 6a89f9c commit af4853a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

debian/rules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ override_dh_auto_build:
1717
mvn clean package -Psystemvm,developer -Dsystemvm \
1818
-Dcs.replace.properties=replace.properties.tmp \
1919
-Dmaven.repo.local=$(HOME)/.m2/repository \
20+
-DskipTests
2021
${ACS_BUILD_OPTS}
2122

2223
override_dh_auto_clean:

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

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

258-
String ontapVolumeName = "cloudstack_vol_" + volumeUuid;
258+
String incomingName = "cloudstack_vol_" + volumeInfo.getName();
259+
String sanitizedName = incomingName.replace('-', '_'); // replaces all '-' with '_'
260+
String ontapVolumeName = "cloudstack_vol_" + sanitizedName;
259261
String junctionPath = "/" + ontapVolumeName;
260262
long sizeInBytes = volumeInfo.getSize();
261263

0 commit comments

Comments
 (0)