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) |
| 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.
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)
shanemcd
left a comment
There was a problem hiding this comment.
Thanks for the contribution!
SUMMARY
ISSUE TYPE
COMPONENT NAME
AWX VERSION
ADDITIONAL INFORMATION
setup:
before:
after: