mirror of https://github.com/containers/podman.git
Fix a bug with APIv2 compat network remove to log an ErrNetworkNotFound instead of nil
Signed-off-by: Maximilian Müller <maxm123@techie.com>
This commit is contained in:
parent
673116c063
commit
babc64b44b
|
|
@ -285,7 +285,7 @@ func RemoveNetwork(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !exists {
|
if !exists {
|
||||||
utils.Error(w, "network not found", http.StatusNotFound, err)
|
utils.Error(w, "network not found", http.StatusNotFound, network.ErrNetworkNotFound)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if err := network.RemoveNetwork(config, name); err != nil {
|
if err := network.RemoveNetwork(config, name); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue