diff options
author | Urvashi Mohnani <umohnani@redhat.com> | 2022-05-25 16:50:16 -0400 |
---|---|---|
committer | Urvashi Mohnani <umohnani@redhat.com> | 2022-05-26 11:12:40 -0400 |
commit | 426a07e7008f539825abe74484296cfaf4399ad8 (patch) | |
tree | 5e735bd7fd41637c14ceacd6959eff8ddc3a262b /cmd/podman/networks | |
parent | e11feb230923a169c1e235552afa2f7bec7f0fff (diff) | |
download | podman-426a07e7008f539825abe74484296cfaf4399ad8.tar.gz podman-426a07e7008f539825abe74484296cfaf4399ad8.tar.bz2 podman-426a07e7008f539825abe74484296cfaf4399ad8.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/networks')
-rw-r--r-- | cmd/podman/networks/reload.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/networks/reload.go b/cmd/podman/networks/reload.go index 7b6323187..66248e9fb 100644 --- a/cmd/podman/networks/reload.go +++ b/cmd/podman/networks/reload.go @@ -21,7 +21,7 @@ var ( Long: networkReloadDescription, RunE: networkReload, Args: func(cmd *cobra.Command, args []string) error { - return validate.CheckAllLatestAndCIDFile(cmd, args, false, false) + return validate.CheckAllLatestAndIDFile(cmd, args, false, "") }, ValidArgsFunction: common.AutocompleteContainers, Example: `podman network reload --latest |