diff options
author | Urvashi Mohnani <umohnani@redhat.com> | 2022-05-25 16:50:16 -0400 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2022-06-14 14:32:59 -0400 |
commit | 4bcae52d970699d01b88cbf68a0118b178afdb7b (patch) | |
tree | ef9bca88f289dec22755288868e970c6bbd2c1aa /cmd/podman/pods/unpause.go | |
parent | 2393449af5f379c2c815c3a854d60bcf06a0d9f4 (diff) | |
download | podman-4bcae52d970699d01b88cbf68a0118b178afdb7b.tar.gz podman-4bcae52d970699d01b88cbf68a0118b178afdb7b.tar.bz2 podman-4bcae52d970699d01b88cbf68a0118b178afdb7b.zip |
Combine the CheckAllLatest CID and PodID functions
These two functions were doing the exact same thing just
with cidfile and pod-id-file separately. Combine the functionality
to one function to remove repetative code.
Fix the TODO in cmd/podman/validate/args.go
[NO NEW TESTS NEEDED]
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
Diffstat (limited to 'cmd/podman/pods/unpause.go')
-rw-r--r-- | cmd/podman/pods/unpause.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/pods/unpause.go b/cmd/podman/pods/unpause.go index a308a82c3..8a0a24e98 100644 --- a/cmd/podman/pods/unpause.go +++ b/cmd/podman/pods/unpause.go @@ -22,7 +22,7 @@ var ( Long: podUnpauseDescription, RunE: unpause, Args: func(cmd *cobra.Command, args []string) error { - return validate.CheckAllLatestAndCIDFile(cmd, args, false, false) + return validate.CheckAllLatestAndIDFile(cmd, args, false, "") }, // TODO have a function which shows only pods which could be unpaused // for now show all |