aboutsummaryrefslogtreecommitdiff
path: root/libpod/define/errors.go
diff options
context:
space:
mode:
authorAlessandro Rossi <al.rossi87@gmail.com>2022-08-27 18:28:24 +0200
committerJason T. Greene <jason.greene@redhat.com>2022-08-27 20:03:40 -0500
commit78aec2130242b81659bd199c6c8605c76e681ff6 (patch)
tree90bd2f2134774d27769b9888542703a4466e5576 /libpod/define/errors.go
parent03e51a058d35820fe8a9a9050b438f9db021ce11 (diff)
downloadpodman-78aec2130242b81659bd199c6c8605c76e681ff6.tar.gz
podman-78aec2130242b81659bd199c6c8605c76e681ff6.tar.bz2
podman-78aec2130242b81659bd199c6c8605c76e681ff6.zip
Fix #15499 already connected network
Compat: Treat already attached networks as a no-op Applies only to containers in created state. Maintain error in running state. Co-authored-by: Alessandro Rossi <al.rossi87@gmail.com> Co-authored-by: Brent Baude <bbaude@redhat.com> Co-authored-by: Jason T. Greene <jason.greene@redhat.com> Signed-off-by: Alessandro Rossi <al.rossi87@gmail.com> Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
Diffstat (limited to 'libpod/define/errors.go')
-rw-r--r--libpod/define/errors.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/define/errors.go b/libpod/define/errors.go
index fd27e89de..be471c27e 100644
--- a/libpod/define/errors.go
+++ b/libpod/define/errors.go
@@ -179,6 +179,9 @@ var (
// ErrNetworkInUse indicates the requested operation failed because the network was in use
ErrNetworkInUse = errors.New("network is being used")
+ // ErrNetworkConnected indicates that the required operation failed because the container is already a network endpoint
+ ErrNetworkConnected = errors.New("network is already connected")
+
// ErrStoreNotInitialized indicates that the container storage was never
// initialized.
ErrStoreNotInitialized = errors.New("the container storage was never initialized")