Skip to content

Commit 99bcfd2

Browse files
wolfencomsudison
authored andcommitted
All slashes were being removed from the storage path which caused adding the pool to break.
Reviewed-by: Edison Su<sudison@gmail.com>
1 parent 5df32e6 commit 99bcfd2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/storage/volume/default/src/org/apache/cloudstack/storage/datastore/lifecycle/CloudStackPrimaryDataStoreLifeCycleImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public DataStore initialize(Map<String, Object> dsInfos) {
204204
String hostPath = uri.getPath();
205205
Object localStorage = dsInfos.get("localStorage");
206206
if (localStorage != null) {
207-
hostPath = hostPath.replace("/", "");
207+
hostPath = hostPath.replaceFirst("/", "");
208208
}
209209
String userInfo = uri.getUserInfo();
210210
int port = uri.getPort();

0 commit comments

Comments
 (0)