summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2019-03-20 14:16:26 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2019-03-20 17:27:51 -0400
commit71b1062c02d0307660391496907b2868ea444f72 (patch)
treeeac03c9b30ab357ca656098f16bd6b0a4d89f16e /pkg
parent98c64356d1e7bf731d1f55c695ebd62564d432f3 (diff)
downloadpodman-71b1062c02d0307660391496907b2868ea444f72.tar.gz
podman-71b1062c02d0307660391496907b2868ea444f72.tar.bz2
podman-71b1062c02d0307660391496907b2868ea444f72.zip
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>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/spec/createconfig.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/spec/createconfig.go b/pkg/spec/createconfig.go
index a61c88d58..118fbad72 100644
--- a/pkg/spec/createconfig.go
+++ b/pkg/spec/createconfig.go
@@ -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"}...)