-
Notifications
You must be signed in to change notification settings - Fork 100
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
Add compatMode raw JSON output and fix tls_verify init on pull() #500
Conversation
Please squash your commits. |
I investigated why "Test on Fedora" is failing. It is due to the different image ID that is obtained when used
produces:
and the podman-py/podman/domain/images_manager.py Line 421 in 8cab9d8
By directly invoking the API with
produces:
BUT the podman-py/podman/domain/images_manager.py Line 421 in 8cab9d8
This ID will cause It seems that ...
for item in response.iter_lines():
obj = json.loads(item)
print(obj)
{'status': 'Pulling fs layer', 'progressDetail': {}, 'id': '9d16cba9fb96'} It should refer to the last line instead of first. To solve this, I deal the Indeed now "Test on Fedora" works. |
Signed-off-by: Antonio <vozaanthony@gmail.com>
Commits squashed. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: D3vil0p3r, inknos The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Sorry @rhatdan This PR replaces #495 due to some conflicts and need of rebase. For simplicity I opened this one in a clean manner.
Fix #492
Added
compatMode
param topull()
function. Default asTrue
in order to give a detailed progress JSON output by default like:while
compatMode=False
still keeps the one-fieldstream
JSON output:This approach differs from the already present
progress_bar=True
because does not show the "fancy" progress bar but a raw detailed progressing JSON output, useful for devs want to manipulate pull output.Furthermore, the PR fixes
tls_verify
initialization inpull()
because, according to its description, its Default should beTrue
, but it was actually asNone
.