diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-05-21 19:55:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-21 19:55:58 +0200 |
commit | 9d3b46624b4eb3b6eeea38b5b1057914a9ff2baf (patch) | |
tree | 54fbc064fe4f7723407ed8d217148c0b1be4cb7a /cmd/podman | |
parent | c3b6e623bba748fcfdae4f755e04c7185a85e79c (diff) | |
parent | 0d0565f55ee3399f5c2c4e4b73acb732b424f3db (diff) | |
download | podman-9d3b46624b4eb3b6eeea38b5b1057914a9ff2baf.tar.gz podman-9d3b46624b4eb3b6eeea38b5b1057914a9ff2baf.tar.bz2 podman-9d3b46624b4eb3b6eeea38b5b1057914a9ff2baf.zip |
Merge pull request #6323 from rhatdan/shrink
Remove github.com/libpod/libpod from cmd/pkg/podman
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/networks/create.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/podman/networks/create.go b/cmd/podman/networks/create.go index 10973e6bf..5d28c7140 100644 --- a/cmd/podman/networks/create.go +++ b/cmd/podman/networks/create.go @@ -5,7 +5,7 @@ import ( "net" "github.com/containers/libpod/cmd/podman/registry" - "github.com/containers/libpod/libpod" + "github.com/containers/libpod/libpod/define" "github.com/containers/libpod/pkg/domain/entities" "github.com/containers/libpod/pkg/network" "github.com/pkg/errors" @@ -65,8 +65,8 @@ func networkCreate(cmd *cobra.Command, args []string) error { if len(args) > 1 { return errors.Errorf("only one network can be created at a time") } - if len(args) > 0 && !libpod.NameRegex.MatchString(args[0]) { - return libpod.RegexError + if len(args) > 0 && !define.NameRegex.MatchString(args[0]) { + return define.RegexError } if len(args) > 0 { |