mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-5639: If path field in the TO already has the complete path, do
not try to generate the path.
This commit is contained in:
parent
68fda5a8dd
commit
db2b025608
@ -168,16 +168,23 @@ namespace HypervResource
|
||||
}
|
||||
else if (this.nfsDataStore != null)
|
||||
{
|
||||
fileName = this.nfsDataStore.UncPath;
|
||||
if (this.path != null)
|
||||
if (this.path != null && File.Exists(this.path))
|
||||
{
|
||||
fileName += @"\" + this.path;
|
||||
fileName = this.path;
|
||||
}
|
||||
|
||||
fileName = Utils.NormalizePath(fileName);
|
||||
if (Directory.Exists(fileName))
|
||||
else
|
||||
{
|
||||
fileName = Utils.NormalizePath(fileName + @"\" + this.name);
|
||||
fileName = this.nfsDataStore.UncPath;
|
||||
if (this.path != null)
|
||||
{
|
||||
fileName += @"\" + this.path;
|
||||
}
|
||||
|
||||
fileName = Utils.NormalizePath(fileName);
|
||||
if (Directory.Exists(fileName))
|
||||
{
|
||||
fileName = Utils.NormalizePath(fileName + @"\" + this.name);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user