Fix auth-required for help command

When we got picky with the auth arguments we broke using help without
any auth config supplied.  This rearranges things a bit to do the argument
checking when the deferred auth request to Identity occurs so commands
that do not need auth have a chance to live short but useful lives.

Closes-Bug: #1399588
Change-Id: I8ceac491cf65e25eddb62ab2713f471fe686756d
This commit is contained in:
Dean Troyer
2015-02-27 09:19:12 -06:00
parent 9400effd4b
commit 505fa14cd6
5 changed files with 90 additions and 60 deletions
examples
openstackclient

@ -59,7 +59,7 @@ def run(opts):
# Collect the auth and config options together and give them to
# ClientManager and it will wrangle all of the goons into place.
client_manager = clientmanager.ClientManager(
auth_options=opts,
cli_options=opts,
verify=verify,
api_version=api_version,
)