mirror of
https://github.com/containers/podman.git
synced 2025-09-28 01:04:28 +08:00
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:
@ -363,7 +363,7 @@ func (c *CreateConfig) createExitCommand() []string {
|
||||
command = append(command, []string{"--storage-driver", config.StorageConfig.GraphDriverName}...)
|
||||
}
|
||||
if c.Syslog {
|
||||
command = append(command, "--syslog")
|
||||
command = append(command, "--syslog", "true")
|
||||
}
|
||||
command = append(command, []string{"container", "cleanup"}...)
|
||||
|
||||
|
Reference in New Issue
Block a user