From c8c13fe0586ca2daa94e319d54e24b1797218173 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 15 Sep 2025 14:31:20 +0200 Subject: [PATCH] API: /info: remove magic `` values for API < 1.39 daemon versions before v18.09 (API v1.39) returned a magic `` value for the `KernelVersion` and `OperatingSystem` if these values were not set. Commit e6e8ab50fad5397f7be07fa00ba2bca85860cbe8 removed this magic values, but kept a fallback for old versions of the CLI that expected this value to be pre-formatted this way. Given that this change was over 7 Years ago, and never was a strict contract of the API, we can remove this fallback. Current versions of the CLI properly handle presentation, so this would only impact EOL versions of the CLI. Signed-off-by: Sebastiaan van Stijn --- daemon/server/router/system/system_routes.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/daemon/server/router/system/system_routes.go b/daemon/server/router/system/system_routes.go index 2591bf1e06..719e1651f1 100644 --- a/daemon/server/router/system/system_routes.go +++ b/daemon/server/router/system/system_routes.go @@ -87,14 +87,6 @@ func (s *systemRouter) getInfo(ctx context.Context, w http.ResponseWriter, r *ht } info.SecurityOptions = nameOnly } - if versions.LessThan(version, "1.39") { - if info.KernelVersion == "" { - info.KernelVersion = "" - } - if info.OperatingSystem == "" { - info.OperatingSystem = "" - } - } if versions.LessThan(version, "1.44") { for k, rt := range info.Runtimes { // Status field introduced in API v1.44.