Fixed no snapshot found error mistype (#481)

Signed-off-by: Dan Acristinii <dan.acristinii@roche.com>
This commit is contained in:
Dan Acristinii
2021-08-23 13:38:27 +02:00
committed by GitHub
parent a62b0006b8
commit 3c961963f1

View File

@@ -5128,7 +5128,7 @@ function Get-HVPoolProvisioningData {
$snapshotList = $baseImageSnapshot_helper.BaseImageSnapshot_List($services,$parentVmObj.id)
$snapshotVmObj = $snapshotList | Where-Object { $_.name -eq $snapshotVM }
if ($null -eq $snapshotVmObj) {
throw "No sanpshot found with Name: [$snapshotVM]"
throw "No snapshot found with Name: [$snapshotVM]"
}
$vmObject.Snapshot = $snapshotVmObj.id
}