Skip to content

Commit d6c901d

Browse files
authored
Fixed code scanning issues
1 parent 21c4109 commit d6c901d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ps/HyperVServer.ps1

+6-6
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ function Get-ApplicationsHealthyStatusOfStartHyperVVM {
342342
}
343343
}
344344
}
345-
write-LogSectionEnd("Status check messages");
345+
write-LogSectionEnd("Status check messages");
346346

347347
$workInProgress = $true;
348348
while ($workInProgress) {
@@ -353,7 +353,7 @@ function Get-ApplicationsHealthyStatusOfStartHyperVVM {
353353

354354
# backup for future -and $vm.Heartbeat -ne "OkApplicationsUnknown"
355355
# hyper-v show unkown in case the hyper-v extensions are not uptodate
356-
write-LogSectionStart("Status check messages");
356+
write-LogSectionStart("Status check messages");
357357
while ($vm.Heartbeat -ne "OkApplicationsHealthy" -and !$circuitBreaker) {
358358
Start-Sleep -Seconds 5
359359
write-LogInfo("Checking status again in 5 sec.")
@@ -388,7 +388,7 @@ function Get-ApplicationsHealthyStatusOfStartHyperVVM {
388388
continue
389389
}
390390
}
391-
write-LogSectionEnd("Status check messages");
391+
write-LogSectionEnd("Status check messages");
392392

393393
$workInProgress = $false;
394394
write-LogInfo("The VM $vmname has been started.");
@@ -441,14 +441,14 @@ function Get-TimeBasedStatusOfStartHyperVVM {
441441

442442
[int]$waitingInterval = ($timeBasedStatusWaitInterval / 30);
443443

444-
write-LogSectionStart("Status check messages");
444+
write-LogSectionStart("Status check messages");
445445
for ($i = 1; $i -le $waitingTimeNumberOfStatusNotifications; $i++) {
446446
Start-Sleep -Seconds $waitingInterval
447447
$timeBasedStatusWaitIntervalLeft = $timeBasedStatusWaitInterval - $i * $waitingInterval;
448448

449449
write-LogInfo("Waiting interval is reached in $timeBasedStatusWaitIntervalLeft sec.")
450450
}
451-
write-LogSectionEnd("Status check messages");
451+
write-LogSectionEnd("Status check messages");
452452
write-LogInfo("Waiting interval $timeBasedStatusWaitInterval seconds reached. We go on ...")
453453
}
454454

@@ -1074,7 +1074,7 @@ Try {
10741074
Get-HyperVCmdletsAvailable
10751075
Get-ParameterOverview
10761076
write-LogSectionEnd("Hyper-V action core script general info")
1077-
1077+
10781078
Set-HyperVCmdletCacheDisabled -Confirm:$false
10791079

10801080
$vmNames = Get-VMNamesFromVMNameParameter

ps/Logging.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function write-LogError($errorMessage,$filename="HyperVServer.ps1")
2828

2929
function write-LogInfo($message)
3030
{
31-
#Used to provide informational messages about the workflow.
31+
#Used to provide informational messages about the workflow.
3232
#These messages are displayed in white.
3333
Write-Output "${message}"
3434
}

0 commit comments

Comments
 (0)