mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +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();
|
||||
Object localStorage = dsInfos.get("localStorage");
|
||||
if (localStorage != null) {
|
||||
hostPath = hostPath.replace("/", "");
|
||||
hostPath = hostPath.replaceFirst("/", "");
|
||||
}
|
||||
String userInfo = uri.getUserInfo();
|
||||
int port = uri.getPort();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user