Browse code

cli/info: fix seccomp warning

also reword seccomp warning around default seccomp profile

Signed-off-by: Antonio Murdaca <runcom@redhat.com>

Antonio Murdaca authored on 2016/11/05 01:16:44
Showing 1 changed files
... ...
@@ -147,8 +147,8 @@ func prettyPrintInfo(dockerCli *command.DockerCli, info types.Info) error {
147 147
 				case "Name":
148 148
 					fmt.Fprintf(dockerCli.Out(), " %s\n", o.Value)
149 149
 				case "Profile":
150
-					if o.Key != "default" {
151
-						fmt.Fprintf(dockerCli.Err(), "  WARNING: You're not using the Docker's default seccomp profile\n")
150
+					if o.Value != "default" {
151
+						fmt.Fprintf(dockerCli.Err(), "  WARNING: You're not using the default seccomp profile\n")
152 152
 					}
153 153
 					fmt.Fprintf(dockerCli.Out(), "  %s: %s\n", o.Key, o.Value)
154 154
 				}