Skip to content

Commit aa265fe

Browse files
anshulgangwarrajesh-battala
authored andcommitted
CLOUDSTACK-8431: [Hyper-V] Fixed VM deployment failing when the stale vhd already exists Now generating guid when the template copy from secondary to primary storage requested instead of using it same as secondary
this closes #214
1 parent d9064ec commit aa265fe

File tree

2 files changed

+179
-195
lines changed

2 files changed

+179
-195
lines changed

plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/CloudStackTypes.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,11 @@ public string FullFileName
290290
PrimaryDataStoreTO store = this.primaryDataStore;
291291
if (store.isLocal)
292292
{
293-
fileName = Path.Combine(store.Path, this.uuid);
293+
fileName = Path.Combine(store.Path, this.path);
294294
}
295295
else
296296
{
297-
fileName = @"\\" + store.uri.Host + store.uri.LocalPath + @"\" + this.uuid;
297+
fileName = @"\\" + store.uri.Host + store.uri.LocalPath + @"\" + this.path;
298298
}
299299
fileName = fileName + '.' + this.format.ToLowerInvariant();
300300
}

0 commit comments

Comments
 (0)