diff options
| author | Dean Troyer <dtroyer@gmail.com> | 2016-09-01 10:54:29 -0500 |
|---|---|---|
| committer | Alan Pevec <alan.pevec@redhat.com> | 2016-12-09 19:07:52 +0100 |
| commit | 9484cd3850594ef6cb62d3c57dc5ec402305975c (patch) | |
| tree | 73a0bc691ad2ed65a60a5c6a62860307fa44d47b /doc/source/command-objects | |
| parent | 23f6681de615973b7cf54036b607d9a80da6d929 (diff) | |
| download | python-openstackclient-9484cd3850594ef6cb62d3c57dc5ec402305975c.tar.gz | |
Defer auth prompting until it is actually needed
Auth option prompting happens waaaay to early in the default
os-client-config flow, we need to defer it until adter the commands
have been parsed. This is why ClientManager.setup_auth() exists,
as it is not called until the first attempt to connect to a server
occurs. Commands that do not require authentication never hit this.
Also, required options were not being enforced. By doing this we handle
when no authentication info is present, we fail on missing auth-url rather
than attempt to prompt for a password (default auth is password).
Closes-Bug: 1619274
Change-Id: Ia4eae350e6904c9eb2c8507d9b3429fe52418726
(cherry picked from commit 14dbfe44741b65c9e0514a34669f52de8629b1c0)
Diffstat (limited to 'doc/source/command-objects')
0 files changed, 0 insertions, 0 deletions
