mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-333: When Datacenter name in VCenter has spaces Primary Storage (VMFS) discovery will fail
Description:
Missed encoding of URI when discovering ESX cluster in vCenter.
Signed-off-by: Vijayendra Bhamidipati <vijayendra.bhamidipati@citrix.com>
This commit is contained in:
parent
2a8b9e5130
commit
8ced7da733
@ -1281,7 +1281,7 @@ public class StorageManagerImpl implements StorageManager, Manager, ClusterManag
|
||||
}
|
||||
URI uri = null;
|
||||
try {
|
||||
uri = new URI(cmd.getUrl());
|
||||
uri = new URI(UriUtils.encodeURIComponent(cmd.getUrl()));
|
||||
if (uri.getScheme() == null) {
|
||||
throw new InvalidParameterValueException("scheme is null " + cmd.getUrl() + ", add nfs:// as a prefix");
|
||||
} else if (uri.getScheme().equalsIgnoreCase("nfs")) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user