diff options
author | zhangguanzhang <zhangguanzhang@qq.com> | 2021-06-01 20:44:12 +0800 |
---|---|---|
committer | zhangguanzhang <zhangguanzhang@qq.com> | 2021-06-01 20:58:48 +0800 |
commit | 1daaf34d7b36a830bfe1ab8431ad2392b0dfe079 (patch) | |
tree | 214ca28d770157a3f8d9f816d0bed72554378354 /pkg/domain/infra | |
parent | 7dd463bad1b53802caf3cc1e1e1cc4a250e1667a (diff) | |
download | podman-1daaf34d7b36a830bfe1ab8431ad2392b0dfe079.tar.gz podman-1daaf34d7b36a830bfe1ab8431ad2392b0dfe079.tar.bz2 podman-1daaf34d7b36a830bfe1ab8431ad2392b0dfe079.zip |
[NO TESTS NEEDED] API list networks should return [] when used with no networks
Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
Diffstat (limited to 'pkg/domain/infra')
-rw-r--r-- | pkg/domain/infra/abi/network.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/domain/infra/abi/network.go b/pkg/domain/infra/abi/network.go index 33ab280e5..7900caaa6 100644 --- a/pkg/domain/infra/abi/network.go +++ b/pkg/domain/infra/abi/network.go @@ -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 { |