-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 back setting environment variable #3549
Add back setting environment variable #3549
Conversation
err = setAnsibleEnvVars(f) | ||
if err != nil { | ||
log.Error(err, "Failed to set environment variable.") | ||
os.Exit(1) | ||
} |
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.
err = setAnsibleEnvVars(f) | |
if err != nil { | |
log.Error(err, "Failed to set environment variable.") | |
os.Exit(1) | |
} | |
if err := setAnsibleEnvVars(f); err != nil { | |
log.Error(err, "Failed to set environment variable.") | |
os.Exit(1) | |
} |
"value", f.AnsibleCollectionsPath) | ||
} | ||
return nil | ||
} |
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.
I agree. Shows that it should be kept. @fabianvf @asmacdo @jmrodri @joelanford wdyt?
Great catch @tengqm! Thanks! This was actually released in v0.19.0, so we'll need to backport this. Because of this, can you please add a CHANGELOG fragment? |
The commit 'ed92d3668ca921270d01055d8d8e01f3fd5187d3' removed the `setAnsibleEnvVars` function. However, that function is important to make sure the command line flags `ansible-roles-path` and `ansible-collections-path` work. These command line flags are set into environment variables that will be picked up later.
914466c
to
1bf89f7
Compare
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
/lgtm |
/cherry-pick v0.19.x |
@joelanford: #3549 failed to apply on top of branch "v0.19.x":
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. |
Description of the change:
The commit
ed92d3668ca921270d01055d8d8e01f3fd5187d3
removed thesetAnsibleEnvVars
function. However, that function is important to make sure the command line flagsansible-roles-path
andansible-collections-path
work. These command line flags are set into environment variables that will be picked up later.Motivation for the change:
This PR fixes an issue introduced by a previous PR.
Not sure we need a change log for this kind of fix, because it is fixing a bug that is not yet released.