diff options
| author | Monty Taylor <mordred@inaugust.com> | 2015-11-19 10:22:31 -0500 |
|---|---|---|
| committer | Steve Martinelli <stevemar@ca.ibm.com> | 2015-11-19 15:48:28 +0000 |
| commit | 13bb2f74b0d65c1fef30f77d710d56e51e5f7841 (patch) | |
| tree | 63fd195310fc49fab213421beac45b5d8c8df1df /keystoneclient/auth/identity | |
| parent | 4a070903d29aca07a8d19b59bb20818d1c759c44 (diff) | |
| download | python-keystoneclient-13bb2f74b0d65c1fef30f77d710d56e51e5f7841.tar.gz | |
Swap the order of username deprecation
The attempt at a move to user-name is an exercise in churn, and is
filling everyone's logs with admonitions to change the name of their
variables - which does not work if they do. Swap this, effectively
reverting the attempt at a move. user-name will continue to work on
the off chance anyone started consuming that path, which is unlikely
because none of the consuming programs expose that as an actual option.
Closes-Bug: 1498247
Change-Id: I62d991fda1df63c9cbabfde2f6836bc031f5147c
Diffstat (limited to 'keystoneclient/auth/identity')
| -rw-r--r-- | keystoneclient/auth/identity/generic/password.py | 4 | ||||
| -rw-r--r-- | keystoneclient/auth/identity/v2.py | 4 | ||||
| -rw-r--r-- | keystoneclient/auth/identity/v3/password.py | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/keystoneclient/auth/identity/generic/password.py b/keystoneclient/auth/identity/generic/password.py index f1c8aa6..3c4180c 100644 --- a/keystoneclient/auth/identity/generic/password.py +++ b/keystoneclient/auth/identity/generic/password.py @@ -26,8 +26,8 @@ LOG = logging.getLogger(__name__) def get_options(): return [ cfg.StrOpt('user-id', help='User id'), - cfg.StrOpt('user-name', dest='username', help='Username', - deprecated_name='username'), + cfg.StrOpt('username', dest='username', help='Username', + deprecated_name='user-name'), cfg.StrOpt('user-domain-id', help="User's domain id"), cfg.StrOpt('user-domain-name', help="User's domain name"), cfg.StrOpt('password', help="User's password"), diff --git a/keystoneclient/auth/identity/v2.py b/keystoneclient/auth/identity/v2.py index abe3e4c..5de4527 100644 --- a/keystoneclient/auth/identity/v2.py +++ b/keystoneclient/auth/identity/v2.py @@ -188,9 +188,9 @@ class Password(Auth): options = super(Password, cls).get_options() options.extend([ - cfg.StrOpt('user-name', + cfg.StrOpt('username', dest='username', - deprecated_name='username', + deprecated_name='user-name', help='Username to login with'), cfg.StrOpt('user-id', help='User ID to login with'), cfg.StrOpt('password', secret=True, help='Password to use'), diff --git a/keystoneclient/auth/identity/v3/password.py b/keystoneclient/auth/identity/v3/password.py index 1184e80..99094a1 100644 --- a/keystoneclient/auth/identity/v3/password.py +++ b/keystoneclient/auth/identity/v3/password.py @@ -79,8 +79,8 @@ class Password(base.AuthConstructor): options.extend([ cfg.StrOpt('user-id', help='User ID'), - cfg.StrOpt('user-name', dest='username', help='Username', - deprecated_name='username'), + cfg.StrOpt('username', dest='username', help='Username', + deprecated_name='user-name'), cfg.StrOpt('user-domain-id', help="User's domain id"), cfg.StrOpt('user-domain-name', help="User's domain name"), cfg.StrOpt('password', secret=True, help="User's password"), |
