diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2022-06-22 13:01:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-22 13:01:36 +0000 |
commit | 2629f445a0154e64c1269f52eaf0a0a6abf7e7e5 (patch) | |
tree | 2de9d38b03920610ba721bc61e468ca5d8fd5bde | |
parent | 00ce793f0db8bbbc5a5048c9b75512fb506eee93 (diff) | |
parent | 0320ce37de642ec551bcb31806efcc75b07f1154 (diff) | |
download | podman-2629f445a0154e64c1269f52eaf0a0a6abf7e7e5.tar.gz podman-2629f445a0154e64c1269f52eaf0a0a6abf7e7e5.tar.bz2 podman-2629f445a0154e64c1269f52eaf0a0a6abf7e7e5.zip |
Merge pull request #14690 from sstosh/prune-message
Fix system prune output message
-rw-r--r-- | cmd/podman/utils/utils.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/utils/utils.go b/cmd/podman/utils/utils.go index 73bb34983..2ae123388 100644 --- a/cmd/podman/utils/utils.go +++ b/cmd/podman/utils/utils.go @@ -44,7 +44,7 @@ func PrintPodPruneResults(podPruneReports []*entities.PodPruneReport, heading bo func PrintContainerPruneResults(containerPruneReports []*reports.PruneReport, heading bool) error { var errs OutputErrors - if heading && (len(containerPruneReports) > 0) { + if heading && len(containerPruneReports) > 0 { fmt.Println("Deleted Containers") } for _, v := range containerPruneReports { @@ -72,7 +72,7 @@ func PrintVolumePruneResults(volumePruneReport []*reports.PruneReport, heading b } func PrintImagePruneResults(imagePruneReports []*reports.PruneReport, heading bool) error { - if heading { + if heading && len(imagePruneReports) > 0 { fmt.Println("Deleted Images") } for _, r := range imagePruneReports { |