mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-20 20:43:43 +01:00
All slashes were being removed from the storage path which caused adding the pool to break.
Reviewed-by: Edison Su<sudison@gmail.com>
This commit is contained in:
parent
5df32e6d70
commit
99bcfd24c7
@ -204,7 +204,7 @@ public class CloudStackPrimaryDataStoreLifeCycleImpl implements
|
|||||||
String hostPath = uri.getPath();
|
String hostPath = uri.getPath();
|
||||||
Object localStorage = dsInfos.get("localStorage");
|
Object localStorage = dsInfos.get("localStorage");
|
||||||
if (localStorage != null) {
|
if (localStorage != null) {
|
||||||
hostPath = hostPath.replace("/", "");
|
hostPath = hostPath.replaceFirst("/", "");
|
||||||
}
|
}
|
||||||
String userInfo = uri.getUserInfo();
|
String userInfo = uri.getUserInfo();
|
||||||
int port = uri.getPort();
|
int port = uri.getPort();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user