/libpod/pods/json returns null when there are no pods #7392
Labels
HTTP API
Bug is in RESTful API
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.
/kind bug
Description
The containers and images endpoints return the empty set '[]' vs. the pods endpoint which returns null
Steps to reproduce the issue:
In window#1:
podman system service tcp:localhost:8080 --log-level=debug --time=0
In window#2:
curl -s -v 'http://localhost:8080/v1.40.0/libpod/pods/json'
Describe the results you received:
< HTTP/1.1 200 OK
< Content-Type: application/json
< Date: Thu, 20 Aug 2020 16:12:26 GMT
< Content-Length: 5
<
null
Describe the results you expected:
< HTTP/1.1 200 OK
< Content-Type: application/json
< Date: Thu, 20 Aug 2020 16:12:26 GMT
< Content-Length: 5
<
[]
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
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: