From 60551c477defbf59318e4115473b64cfab9e51f3 Mon Sep 17 00:00:00 2001 From: Daniel Hiltgen Date: Mon, 27 Aug 2018 15:33:16 -0700 Subject: [PATCH] Expose product license in info output Signed-off-by: Daniel Hiltgen (cherry picked from commit 68be7cb376f2c4959a867081013c56406d1ed554) Signed-off-by: Daniel Hiltgen --- cli/command/system/info.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/command/system/info.go b/cli/command/system/info.go index a99354abbd..92fc2cd3e7 100644 --- a/cli/command/system/info.go +++ b/cli/command/system/info.go @@ -204,6 +204,9 @@ func prettyPrintInfo(dockerCli command.Cli, info types.Info) error { } fmt.Fprintln(dockerCli.Out(), "Live Restore Enabled:", info.LiveRestoreEnabled) + if info.ProductLicense != "" { + fmt.Fprintln(dockerCli.Out(), "Product License:", info.ProductLicense) + } fmt.Fprint(dockerCli.Out(), "\n") printWarnings(dockerCli, info)