From a3b971ce9397959c24c200c1271763909b8cb0a2 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Fri, 4 Nov 2016 17:16:44 +0100 Subject: [PATCH] cli/info: fix seccomp warning also reword seccomp warning around default seccomp profile Signed-off-by: Antonio Murdaca Upstream-commit: b338ab7c41955c8109711c2e31b9f94f67e9284c Component: cli --- components/cli/command/system/info.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/cli/command/system/info.go b/components/cli/command/system/info.go index dfbc83d90a..7ab658c136 100644 --- a/components/cli/command/system/info.go +++ b/components/cli/command/system/info.go @@ -147,8 +147,8 @@ func prettyPrintInfo(dockerCli *command.DockerCli, info types.Info) error { case "Name": fmt.Fprintf(dockerCli.Out(), " %s\n", o.Value) case "Profile": - if o.Key != "default" { - fmt.Fprintf(dockerCli.Err(), " WARNING: You're not using the Docker's default seccomp profile\n") + if o.Value != "default" { + fmt.Fprintf(dockerCli.Err(), " WARNING: You're not using the default seccomp profile\n") } fmt.Fprintf(dockerCli.Out(), " %s: %s\n", o.Key, o.Value) }