mirror of
https://github.com/containers/podman
synced 2024-10-22 10:13:33 +00:00
Merge pull request #10518 from zhangguanzhang/api-networks-list
[NO TESTS NEEDED] Fixes API list networks returns "null" instead of empty array when used with no networks
This commit is contained in:
commit
53642ca5e9
|
@ -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 a new issue