diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-08-29 06:56:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-29 06:56:15 -0400 |
commit | e78363d24ce631c36579a294864af159f180a535 (patch) | |
tree | d1a6fa18e113447c71f22f785b1bddc2ea133da6 /libpod/boltdb_state.go | |
parent | 3a6342062821cec7670bd9b4a5f3234866a8ed8e (diff) | |
parent | 78aec2130242b81659bd199c6c8605c76e681ff6 (diff) | |
download | podman-e78363d24ce631c36579a294864af159f180a535.tar.gz podman-e78363d24ce631c36579a294864af159f180a535.tar.bz2 podman-e78363d24ce631c36579a294864af159f180a535.zip |
Merge pull request #15516 from kubealex/handle-connected-network
Handle an already connected network in libpod API
Diffstat (limited to 'libpod/boltdb_state.go')
-rw-r--r-- | libpod/boltdb_state.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/boltdb_state.go b/libpod/boltdb_state.go index 81f11410b..e5a7e20fc 100644 --- a/libpod/boltdb_state.go +++ b/libpod/boltdb_state.go @@ -1278,7 +1278,7 @@ func (s *BoltState) NetworkConnect(ctr *Container, network string, opts types.Pe } netConnected := ctrNetworksBkt.Get([]byte(network)) if netConnected != nil { - return fmt.Errorf("container %s is already connected to network %q: %w", ctr.ID(), network, define.ErrNetworkExists) + return fmt.Errorf("container %s is already connected to network %q: %w", ctr.ID(), network, define.ErrNetworkConnected) } // Add the network |