Skip to content

Commit eadacaf

Browse files
committed
GCE/Windows: ignore stopping errors for stackdriver
1 parent 946087b commit eadacaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ $STACKDRIVER_ROOT = 'C:\Program Files (x86)\Stackdriver'
10841084
# `Restart-Service StackdriverLogging` may fail because StackdriverLogging
10851085
# sometimes is unstoppable, so we work around it by killing the processes.
10861086
function Restart-StackdriverLoggingAgent {
1087-
Stop-Service -NoWait StackdriverLogging
1087+
Stop-Service -NoWait -ErrorAction Ignore StackdriverLogging
10881088
# TODO: check periodically to lower the wait time
10891089
Start-Sleep 10
10901090
if ((Get-service StackdriverLogging).Status -ne 'Stopped') {

0 commit comments

Comments
 (0)