API list networks returns "null" instead of empty array when used with no networks #10495
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The list volumes API endpoint returns
[]
when called with no volumes, list networks returnsnull
when used with no networks. According to the API docs, the behavior should be similar.Steps to reproduce the issue:
podman system service unix:///home/`whoami`/testing.sock --log-level=debug --time=500
Describe the results you received:
null
Describe the results you expected:
[]
- an emtpy array.Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Static build from here.
Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Checked troubleshooting guide, didn't find any static builds from CI besides the one from the 3.1.2 release I downloaded earlier.
Additional environment details (AWS, VirtualBox, physical, etc.):
Windows 10, 64bit, WLS2, Debian 10
The text was updated successfully, but these errors were encountered: