This fix enables 'barbican help' and 'barbican complete' to
not need authentication. This commit also enables deferred_help
so that the following command can be ran:
'barbican secret list --help' (the help for the
particular command will be shown).
The code changes are similar to the python-openstackclient
usage of the cliff library. The current implementation
of the barbican client authenticates before checking the type of
command. This early authentication causes the client
to fail with 'barbican help'. This code change will
check if the command requires authentication
and creates the client.
Reviewed: https:/ /review. openstack. org/224467 /git.openstack. org/cgit/ openstack/ python- barbicanclient/ commit/ ?id=89c2f286a62 46606335f31abf1 a6289e89b427f2
Committed: https:/
Submitter: Jenkins
Branch: master
commit 89c2f286a624660 6335f31abf1a628 9e89b427f2
Author: Elvin Tubillara <email address hidden>
Date: Thu Sep 17 02:30:20 2015 -0500
enable barbican help without authentication
This fix enables 'barbican help' and 'barbican complete' to openstackclient
not need authentication. This commit also enables deferred_help
so that the following command can be ran:
'barbican secret list --help' (the help for the
particular command will be shown).
The code changes are similar to the python-
usage of the cliff library. The current implementation
of the barbican client authenticates before checking the type of
command. This early authentication causes the client
to fail with 'barbican help'. This code change will
check if the command requires authentication
and creates the client.
Change-Id: If335ef0373c75b 145dc696d850115 3da59fff1b7
Closes-Bug: #1488934