Skip to content

Commit

Permalink
windows: fix install stuck at Wait-ForCalicoInit (#1210)
Browse files Browse the repository at this point in the history
Get-LastBootTime was returning a datetime value which used to be
a string.
  • Loading branch information
lmm authored Sep 10, 2021
1 parent 1481f5d commit 2004f2a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion windows-packaging/CalicoWindows/libs/calico/calico.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@ function Get-LastBootTime()
{
throw "Failed to get last boot time"
}
return $bootTime

# This function is used in conjunction with Get-StoredLastBootTime, which
# returns a string, so convert the datetime value to a string using the "general" standard format.
return $bootTime.ToString("G")
}

$softwareRegistryKey = "HKLM:\Software\Tigera"
Expand Down

0 comments on commit 2004f2a

Please sign in to comment.