-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman {info,version} --format '{{json .}}'
regression since podmanv2 commands landed
#7056
Comments
|
These seem to be fixed in the master branch. |
This appears to still be broken in version 2.0.4
|
podman inspect quay.io/ansible/default-test-container:1.11 --format '{{json .}}' |
|
and in 2.0.6 (as found in Fedora 31) |
These work for me?
|
Those two work, but
I think it might be fixed in git, just not in stable versions. |
/kind bug
Description
Back in #2688 and #4408, special handling for the docker-ish
json
formatter function was added to theinfo
andversion
command handlers. These workarounds disappeared when the podmanV2 commands were promoted in 241326a, and we now get an error message.Steps to reproduce the issue:
podman info -f '{{json .}}'
and/orpodman version -f '{{json .}}'
Describe the results you received:
Describe the results you expected:
The formatter should render JSON as if I had passed
--format json
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: