diff options
author | Urvashi Mohnani <umohnani@redhat.com> | 2022-05-25 15:34:59 -0400 |
---|---|---|
committer | Urvashi Mohnani <umohnani@redhat.com> | 2022-07-05 10:32:49 -0400 |
commit | 65d511c6d859f250b6e45107315436e73f125c3a (patch) | |
tree | 346b5e2aff8ae3350b2457ad4f13fc203620d3a1 /cmd/podman/pods | |
parent | 9539a89ee77682ed3f4d1d0be3b950523e2f2439 (diff) | |
download | podman-65d511c6d859f250b6e45107315436e73f125c3a.tar.gz podman-65d511c6d859f250b6e45107315436e73f125c3a.tar.bz2 podman-65d511c6d859f250b6e45107315436e73f125c3a.zip |
Fix podman pod unpaue TODO
Update the podman pod unpause to only show the paused
containers with autocomplete.
Fix a typo in the help command.
Update the unpause function to only attempt an unpause
on pasued pods instead of all the pods.
Update the tests accordingly.
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
Diffstat (limited to 'cmd/podman/pods')
-rw-r--r-- | cmd/podman/pods/unpause.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd/podman/pods/unpause.go b/cmd/podman/pods/unpause.go index 8a0a24e98..47b29458b 100644 --- a/cmd/podman/pods/unpause.go +++ b/cmd/podman/pods/unpause.go @@ -24,9 +24,7 @@ var ( Args: func(cmd *cobra.Command, args []string) error { return validate.CheckAllLatestAndIDFile(cmd, args, false, "") }, - // TODO have a function which shows only pods which could be unpaused - // for now show all - ValidArgsFunction: common.AutocompletePods, + ValidArgsFunction: common.AutoCompletePodsPause, Example: `podman pod unpause podID1 podID2 podman pod unpause --all podman pod unpause --latest`, @@ -43,7 +41,7 @@ func init() { Parent: podCmd, }) flags := unpauseCommand.Flags() - flags.BoolVarP(&unpauseOptions.All, "all", "a", false, "Pause all running pods") + flags.BoolVarP(&unpauseOptions.All, "all", "a", false, "Unpause all running pods") validate.AddLatestFlag(unpauseCommand, &unpauseOptions.Latest) } |