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:
Brian Spindler 2013-03-25 13:20:27 -07:00 committed by Edison Su
parent 5df32e6d70
commit 99bcfd24c7

View File

@ -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();