-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
fix(env): parsing --env incorrect in cli #19560
Conversation
@BlackHole1: GitHub didn't allow me to request PR reviews from the following users: kajinamit. Note that only containers members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
f5d83cf
to
faa0d61
Compare
@vrothberg Thank you for your CR. I modified done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BlackHole1, vrothberg 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 |
Signed-off-by: Black-Hole1 <[email protected]>
/lgtm |
@rhatdan Are you pinging the wrong person? 🤣 |
Yes. I meant to ping the reporter of the bug. |
I'm going to backport this to the 4.6 branch. |
I don't think the original |
I'm upset that this got merged without my review. There are still problems with env-file processing. I will open up new issues. |
Just noting for future reference, that if this fix is backported into Podman 4.4, it has the potential to break OpenStack on that version of RHEL (9.2). Please do NOT backport this to the 4.4 branch without very careful consideration. Please note: https://bugzilla.redhat.com/show_bug.cgi?id=2230212 for details. |
What breaks OpenStack(actually it does not break the whole OpenStack but only TripleO which is the deployment tool) is not this one but #19096 , thought as long as that is backported along with this follow-up PR then it would not cause problem with the usage in RHEL9.2 . |
Fixed: #19096 (comment)
Fixed: #19096 (comment)
The root cause of this issue lies in the fact that the shell discards the quotes in the parameters, as shown in the following code snippet:
This will result in problems with the current
parseEnv
implementation. Unfortunately, there is no way to change the behavior of the shell, so the only option is to fix it withinparseEnv
. In order to reduce code complexity, I have ported the previousparseEnv
function back and renamed it asparseEnvWithSlice
. Furthermore, this function will be used exclusively for the--env
option, which will bring another benefit: it will run faster than--env-file
.Now:
Does this PR introduce a user-facing change?
Ref:
PTAL @rhatdan @vrothberg @Luap99
/cc @edsantiago @kajinamit