Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

--tower-password is only working with commands #337

Open
abraverm opened this issue Aug 10, 2017 · 2 comments
Open

--tower-password is only working with commands #337

abraverm opened this issue Aug 10, 2017 · 2 comments
Labels
blocked cannot be developed at this time for some reason click problems with the click library enhancement

Comments

@abraverm
Copy link

The following doesn't work:

$ tower --tower-password $(pass tower.example.com) --help
Error: no such option: --tower-password
$ tower job --tower-password $(pass tower.example.com) --help

But the following does:

$ tower job list --tower-password $(pass tower.example.com) --help
Usage: tower-cli job list [OPTIONS]

  Return a list of jobs.

  If one or more filters are provided through options, filter the results
  accordingly.

  If no filters are provided, return all results.

Field Options:
.... 
@AlanCoding
Copy link
Member

The non-command invocations shouldn't reach out to the tower server (with the possible exception of the version command), so there's no way we would use these. Is this a problem with automation, such that you just want it to ignore the values given for these options?

@abraverm
Copy link
Author

I believe the password option should be global (shared with all actions) and all global options are ignored when not needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked cannot be developed at this time for some reason click problems with the click library enhancement
Projects
None yet
Development

No branches or pull requests

2 participants