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).
Reviewed: https:/ /review. openstack. org/364518 /git.openstack. org/cgit/ openstack/ python- openstackclient /commit/ ?id=14dbfe44741 b65c9e0514a3466 9f52de8629b1c0
Committed: https:/
Submitter: Jenkins
Branch: master
commit 14dbfe44741b65c 9e0514a34669f52 de8629b1c0
Author: Dean Troyer <email address hidden>
Date: Thu Sep 1 10:54:29 2016 -0500
Defer auth prompting until it is actually needed
Auth option prompting happens waaaay to early in the default client- config flow, we need to defer it until adter the commands setup_auth( ) exists,
os-
have been parsed. This is why ClientManager.
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 9eb2c8507d9b342 9fe52418726
Change-Id: Ia4eae350e6904c