mirror of https://github.com/containers/podman.git
[NO TESTS NEEDED] API list networks should return [] when used with no networks
Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
This commit is contained in:
parent
7dd463bad1
commit
1daaf34d7b
|
|
@ -11,7 +11,7 @@ import (
|
|||
)
|
||||
|
||||
func (ic *ContainerEngine) NetworkList(ctx context.Context, options entities.NetworkListOptions) ([]*entities.NetworkListReport, error) {
|
||||
var reports []*entities.NetworkListReport
|
||||
reports := make([]*entities.NetworkListReport, 0)
|
||||
|
||||
config, err := ic.Libpod.GetConfig()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue