fix(worker): accept omitted empty image command
This commit is contained in:
@@ -574,7 +574,11 @@ function Assert-ImageContract {
|
||||
[string]::Join([char]0, @("python3", "-m", "k1link.observatory.m49_worker_container_main"))) {
|
||||
throw "Worker 006 installed image entrypoint changed"
|
||||
}
|
||||
if (@($Image.Config.Cmd).Count -ne 0) {
|
||||
$commandProperty = $Image.Config.PSObject.Properties["Cmd"]
|
||||
if (
|
||||
$null -ne $commandProperty -and
|
||||
@($commandProperty.Value).Count -ne 0
|
||||
) {
|
||||
throw "Worker 006 installed image command changed"
|
||||
}
|
||||
if ([string]$Image.Config.User -cne "0:0") {
|
||||
|
||||
Reference in New Issue
Block a user