summaryrefslogtreecommitdiff
path: root/cmd/podman/common/netflags.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-14 08:32:52 -0500
committerGitHub <noreply@github.com>2020-12-14 08:32:52 -0500
commitbdbf47f606fbb592d563d33ddf3b7200c8607bf2 (patch)
treef32a9808524b6a211dde428a2dddc935ec058677 /cmd/podman/common/netflags.go
parenta226e6ed318ae7b7af16081b787cc80718e73e2d (diff)
parentf7bd0a495ac40c5165e699f2eee31a33c3c0850f (diff)
downloadpodman-bdbf47f606fbb592d563d33ddf3b7200c8607bf2.tar.gz
podman-bdbf47f606fbb592d563d33ddf3b7200c8607bf2.tar.bz2
podman-bdbf47f606fbb592d563d33ddf3b7200c8607bf2.zip
Merge pull request #8699 from Luap99/network-flag-completion
shell completion for the network flag
Diffstat (limited to 'cmd/podman/common/netflags.go')
-rw-r--r--cmd/podman/common/netflags.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/common/netflags.go b/cmd/podman/common/netflags.go
index cae52ccaa..9cb4ed550 100644
--- a/cmd/podman/common/netflags.go
+++ b/cmd/podman/common/netflags.go
@@ -63,7 +63,7 @@ func DefineNetFlags(cmd *cobra.Command) {
networkFlagName, containerConfig.NetNS(),
"Connect a container to a network",
)
- _ = cmd.RegisterFlagCompletionFunc(networkFlagName, AutocompleteNetworks)
+ _ = cmd.RegisterFlagCompletionFunc(networkFlagName, AutocompleteNetworkFlag)
networkAliasFlagName := "network-alias"
netFlags.StringSlice(