-
Notifications
You must be signed in to change notification settings - Fork 3.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
making the cli use AWXKIT_CREDENTIAL_FILE #9491
Conversation
Build failed.
|
Build succeeded.
|
@unlikelyzero @tiagodread This addresses a bug with the awxkit config precedence. (CLI args would now override config file vars). That's probably (?) the expected behavior but it's possible that some test suites and other tooling might implicitly rely on the unexpected (current) behavior. Can you give this a run to make sure it all still works? |
at least for |
Any updates? as already mentioned, AWXKIT_CREDENTIAL_FILE did not have any effect prior to this PR, it was completely ignored. The precedence is not the issue here. |
Hello. If you could please rebase this and resolve the conflicts, we'll get this merged. |
Thanks for getting back to this. Should be good to go now, the changes still seem to work |
tower-cli used to support config files. This merge request has unittests so that it doesn't break again, yet it has been open for 4 months now. I even merged the conflicts in on the same day of your request. To be honest, this is somewhat discouraging me to help the project out in the future... I'm not trying to be rude, but maintaining our AWX setup has caused us/me a lot of work, which adds to the frustration a bit. sorry |
Whoops, sorry for that. I'll just squash all commits later, should be a fresh single-commit merge request afterwards |
Signed-off-by: sezanzeb <proxima@sezanzeb.de>
0cba6eb
to
cbe612b
Compare
here you are, the PR is now a single commit (also with --signoff) |
metavar='TEXT', | ||
) | ||
auth.add_argument( | ||
'--conf.password', | ||
default=env.get('CONTROLLER_PASSWORD', env.get('TOWER_PASSWORD', 'password')), | ||
default=env.get('CONTROLLER_PASSWORD', env.get('TOWER_PASSWORD', config_password)), |
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.
the default won't show in the help text, will it?
(sorry for the surface-level question, I'm just starting to go over this)
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.
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.
Thanks for the contribution!
SUMMARY
ISSUE TYPE
COMPONENT NAME
AWX VERSION
ADDITIONAL INFORMATION
setup:
before:
after: