mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Only output security options if there are any
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
@@ -33,10 +33,13 @@ func (s *DockerSuite) TestInfoEnsureSucceeds(c *check.C) {
|
||||
"Storage Driver:",
|
||||
"Volume:",
|
||||
"Network:",
|
||||
"Security Options:",
|
||||
"Live Restore Enabled:",
|
||||
}
|
||||
|
||||
if daemonPlatform == "linux" {
|
||||
stringsToCheck = append(stringsToCheck, "Security Options:")
|
||||
}
|
||||
|
||||
if DaemonIsLinux.Condition() {
|
||||
stringsToCheck = append(stringsToCheck, "Runtimes:", "Default Runtime: runc")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user