summaryrefslogtreecommitdiff
path: root/libpod/boltdb_state.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-08-29 06:56:15 -0400
committerGitHub <noreply@github.com>2022-08-29 06:56:15 -0400
commite78363d24ce631c36579a294864af159f180a535 (patch)
treed1a6fa18e113447c71f22f785b1bddc2ea133da6 /libpod/boltdb_state.go
parent3a6342062821cec7670bd9b4a5f3234866a8ed8e (diff)
parent78aec2130242b81659bd199c6c8605c76e681ff6 (diff)
downloadpodman-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.go2
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