diff options
| author | Bhuvan Arumugam <bhuvan@apache.org> | 2012-07-08 16:06:32 -0700 |
|---|---|---|
| committer | Bhuvan Arumugam <bhuvan@apache.org> | 2012-08-15 12:13:36 -0700 |
| commit | f0cefcc77d593198b6e295e92a8bf05fedc8c8ff (patch) | |
| tree | 900e5d877aff188e920ce083ea4608b6f9523e40 /tools | |
| parent | 540c4883d6f2de25dd38db0c18d59d568cd35f1e (diff) | |
| download | python-openstackclient-f0cefcc77d593198b6e295e92a8bf05fedc8c8ff.tar.gz | |
Keyring support for openstackclient.
Bug: 1030440
If password is defined in keyring, use it; otherwise, prompt for the
password. Keying is configured using command line switch,
--os-use-keyring or env(OS_USE_KEYRING).
* openstackclient/common/openstackkeyring.py
The abstract class for keyring, specifically for openstack. The
class is used to store encrypted password in keyring, without
prompting for keyring password. The encrypted password is
stored in ~/.openstack-keyring.cfg file.
* openstack-common.py
Update openstackkeyring library from openstack.common.
* openstackclient/shell.py
OpenStackClient.build_option_parser(): New boolean argument,
--os-use-keyring, default to env(OS_USE_KEYRING).
OpenStackClient.authenticate_user(): Get password from keyring,
if it is defined; otherwise, prompt for the password. If user
enter a password and keyring is enabled, store it in keyring.
OpenStackClient.init_keyring_backend(): New method to define
openstack backend for keyring.
OpenStackClient.get_password_from_keyring(): New method to
get password from keyring.
OpenStackClient.set_password_in_keyring(): New method go set
password in keyring.
* toos/pip-requires
Define keyring and pycrypto as one of dependent.
Change-Id: I36d3a63054658c0ef0553d68b38fefbc236930ef
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/pip-requires | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/pip-requires b/tools/pip-requires index efcaf7fe..d4ad68b6 100644 --- a/tools/pip-requires +++ b/tools/pip-requires @@ -1,7 +1,9 @@ cliff argparse httplib2 +keyring prettytable +pycrypto python-keystoneclient>=0.1,<0.2 python-novaclient>=2,<3 simplejson |
