-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
push_args destination now requires full path with image name and tag when default transport is used #830
Comments
It would help more if instead of putting variables names |
Hey @sshnaidm, thanks for the response and sorry for the delay I was away from my desk for a couple weeks. The explanation makes sense, however maybe we should update the documentation to reflect that. Because from the current functionality this example from the docs wont work since the
It should show:
I am a little conflicted on the current functionality because the task builds and pushes the image as one action. So in theory its fair to assume you want to build Example error:
|
@jakestec Yeah, let's fix the docs and error message, would you like to propose a patch?
Yes, it's not obvious if you have been doing this with previous versions of |
Sure thing, I've submitted my PR here: #848 |
Hello,
I've been using the latest collection version (v1.15.4) with an existing playbook to build container images. When I went to push a new image today I got the following error related to the line of code below:
Destination must be a full URL or path to a directory.
ansible-podman-collections/plugins/modules/podman_image.py
Line 795 in 552af3e
My task:
Debugging I can see its not forming the push arguments correctly:
We should see:
The above task is working in v1.12.1. I was able to fix the issue by modifying the destination in the task to include the image name and tag like so:
I am not sure if this is intended, or an unplanned side effect of the changes implemented by 4985d48 when doing some further checking on the transport type.
The text was updated successfully, but these errors were encountered: