diff options
author | Matthew Heon <mheon@redhat.com> | 2019-02-12 13:11:07 -0500 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2019-02-12 13:11:07 -0500 |
commit | 28ee842b769b5ac4ff9a99a6c21fc66a4d011b9b (patch) | |
tree | 0322715393639eae77096f96cf540a6da8b92c5a /cmd/podman/cleanup.go | |
parent | 19a03976f73d21a821a07ae5f24250a4ceaee33a (diff) | |
download | podman-28ee842b769b5ac4ff9a99a6c21fc66a4d011b9b.tar.gz podman-28ee842b769b5ac4ff9a99a6c21fc66a4d011b9b.tar.bz2 podman-28ee842b769b5ac4ff9a99a6c21fc66a4d011b9b.zip |
Address review comments on #2319
Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'cmd/podman/cleanup.go')
-rw-r--r-- | cmd/podman/cleanup.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/cleanup.go b/cmd/podman/cleanup.go index 064551189..537679d75 100644 --- a/cmd/podman/cleanup.go +++ b/cmd/podman/cleanup.go @@ -37,7 +37,7 @@ func init() { flags.BoolVarP(&cleanupCommand.All, "all", "a", false, "Cleans up all containers") flags.BoolVarP(&cleanupCommand.Latest, "latest", "l", false, "Act on the latest container podman is aware of") - flags.BoolVar(&cleanupCommand.Rm, "rm", false, "After cleanup, remove the container entirely") + flags.BoolVar(&cleanupCommand.Remove, "rm", false, "After cleanup, remove the container entirely") } func cleanupCmd(c *cliconfig.CleanupValues) error { @@ -57,7 +57,7 @@ func cleanupCmd(c *cliconfig.CleanupValues) error { for _, ctr := range cleanupContainers { hadError := false - if c.Rm { + if c.Remove { if err := runtime.RemoveContainer(ctx, ctr, false); err != nil { if lastError != nil { fmt.Fprintln(os.Stderr, lastError) |