Need to pass the true paramater with --syslog in cobra

Currently cobra can not handle a boolean option without a vailue.

This change fixes an issue if you want syslog information to show up
based on the cleanup call.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2019-03-20 14:16:26 -04:00
parent 98c64356d1
commit 71b1062c02

View File

@ -363,7 +363,7 @@ func (c *CreateConfig) createExitCommand() []string {
command = append(command, []string{"--storage-driver", config.StorageConfig.GraphDriverName}...) command = append(command, []string{"--storage-driver", config.StorageConfig.GraphDriverName}...)
} }
if c.Syslog { if c.Syslog {
command = append(command, "--syslog") command = append(command, "--syslog", "true")
} }
command = append(command, []string{"container", "cleanup"}...) command = append(command, []string{"container", "cleanup"}...)