浏览代码

cli/info: fix seccomp warning

also reword seccomp warning around default seccomp profile

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Antonio Murdaca 8 年之前
父节点
当前提交
c68e75e51d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      cli/command/system/info.go

+ 2 - 2
cli/command/system/info.go

@@ -147,8 +147,8 @@ func prettyPrintInfo(dockerCli *command.DockerCli, info types.Info) error {
 				case "Name":
 				case "Name":
 					fmt.Fprintf(dockerCli.Out(), " %s\n", o.Value)
 					fmt.Fprintf(dockerCli.Out(), " %s\n", o.Value)
 				case "Profile":
 				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)
 					fmt.Fprintf(dockerCli.Out(), "  %s: %s\n", o.Key, o.Value)
 				}
 				}