Skip to content

Commit bc3f6c1

Browse files
author
“Ibrahim
committed
Fix the containerd service check
1 parent ac5f05b commit bc3f6c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cluster/gce/windows/k8s-node-setup.psm1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@ function Configure_Containerd {
16081608
# Register if needed and start containerd service.
16091609
function Start_Containerd {
16101610
# Do the registration only if the containerd service does not exist.
1611-
if (Get-WMIObject -Class Win32_Service -Filter "Name='containerd'" -eq $null) {
1611+
if ((Get-WMIObject -Class Win32_Service -Filter "Name='containerd'") -eq $null) {
16121612
Log-Output "Creating containerd service"
16131613
& containerd.exe --register-service --log-file "${env:LOGS_DIR}/containerd.log"
16141614
}

0 commit comments

Comments
 (0)