mirror of
https://github.com/containers/podman.git
synced 2025-06-21 01:19:15 +08:00
[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:
@ -11,7 +11,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (ic *ContainerEngine) NetworkList(ctx context.Context, options entities.NetworkListOptions) ([]*entities.NetworkListReport, error) {
|
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()
|
config, err := ic.Libpod.GetConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user