fix(worker): accept omitted empty image command

This commit is contained in:
DCCONSTRUCTIONS
2026-08-31 21:47:47 +03:00
parent 10fe727561
commit 7025e173a3
2 changed files with 8 additions and 1 deletions
@@ -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") {