diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-11-17 14:16:05 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-11-18 13:02:44 -0500 |
commit | 3b6d7a3669e15a9b66df258b83ad5f4ab67a15f6 (patch) | |
tree | c4b8f5683af0f4c14385ba168060d398e9955aad /pkg | |
parent | 72b67715f8c97fce7bde4677eacfa413b1dafb88 (diff) | |
download | podman-3b6d7a3669e15a9b66df258b83ad5f4ab67a15f6.tar.gz podman-3b6d7a3669e15a9b66df258b83ad5f4ab67a15f6.tar.bz2 podman-3b6d7a3669e15a9b66df258b83ad5f4ab67a15f6.zip |
Remove build \!remote flags from test phase 2
Add some more tests, document cases where remote will not work
Add FIXMEs for tests that should work on podman-remote but currently
do not.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/api/handlers/compat/networks.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/networks.go b/pkg/api/handlers/compat/networks.go index 0158dad51..c74cdb840 100644 --- a/pkg/api/handlers/compat/networks.go +++ b/pkg/api/handlers/compat/networks.go @@ -310,7 +310,11 @@ func RemoveNetwork(w http.ResponseWriter, r *http.Request) { name := utils.GetName(r) reports, err := ic.NetworkRm(r.Context(), []string{name}, options) if err != nil { - utils.Error(w, "Something went wrong.", http.StatusInternalServerError, errors.Wrap(err, "remove Network create")) + utils.Error(w, "remove Network failed", http.StatusInternalServerError, err) + return + } + if len(reports) == 0 { + utils.Error(w, "remove Network failed", http.StatusInternalServerError, errors.Errorf("internal error")) return } report := reports[0] |