mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-5933 Problem with VMware snapshot when datastore has a space in its name
Handling spaces in datastore name while extracting vmdk base name
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
(cherry picked from commit aa84b05491)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
c29254b547
commit
d928f5b9dd
|
|
@ -1249,7 +1249,7 @@ public class VmwareStorageManagerImpl implements VmwareStorageManager {
|
|||
vmdkName = fullPath; // for managed storage, vmdkName == fullPath
|
||||
}
|
||||
else {
|
||||
vmdkName = fullPath.split(" ")[1];
|
||||
vmdkName = fullPath.split("] ")[1];
|
||||
|
||||
if (vmdkName.endsWith(".vmdk")) {
|
||||
vmdkName = vmdkName.substring(0, vmdkName.length() - (".vmdk").length());
|
||||
|
|
|
|||
Loading…
Reference in New Issue