Skip to content

Commit

Permalink
[cloudbase#352] Could not retrieve VM runtime logs
Browse files Browse the repository at this point in the history
  • Loading branch information
MrEasy committed Jul 6, 2022
1 parent 82d3302 commit 794ae1e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions WinImageBuilder.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1202,8 +1202,10 @@ function Wait-ForVMShutdown {
$vmState = (Get-VM -Name $Name).State
$isOff = $vmState -eq "Off"
try {
if ($vmState -ne "Running" -or `
!(Get-VMIntegrationService $Name -Name "Key-Value Pair Exchange").Enabled) {
if ($vmState -ne "Running") {
# https://github.com/cloudbase/windows-imaging-tools/issues/352
# if ($vmState -ne "Running" -or `
# !(Get-VMIntegrationService $Name -Name "Key-Value Pair Exchange").Enabled) {
continue
}
$currentVMMessages = Get-KVPData -VMName $Name
Expand Down

0 comments on commit 794ae1e

Please sign in to comment.