summaryrefslogtreecommitdiff
path: root/keystoneclient/auth/identity/generic/cli.py
diff options
context:
space:
mode:
authorBrant Knudson <bknudson@us.ibm.com>2016-01-14 16:22:04 -0600
committerBrant Knudson <bknudson@us.ibm.com>2016-01-18 17:28:18 -0600
commit1da2c545c3c9099eedf81ebc8b95ab08b311a8c0 (patch)
tree5ec9c4284e7fa6ca7a0bdd4babce7aeedc5efab1 /keystoneclient/auth/identity/generic/cli.py
parentf15c176ba30efdcc15886e8f7203f32deb60c2a2 (diff)
downloadpython-keystoneclient-1.7.4.tar.gz
Mark password/secret options as secret1.7.4
Password, token, and secret options should be marked as secret=True so that when the value is logged the logger knows to obfuscate the value. Change-Id: I6ebdfa3bf6faf37bc11640a5826b3b55bb920fc4 Closes-Bug: 1534299 (cherry picked from commit 04f9f33b4b6079d39c3feea0b1ec1211a1de6a04)
Diffstat (limited to 'keystoneclient/auth/identity/generic/cli.py')
-rw-r--r--keystoneclient/auth/identity/generic/cli.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/keystoneclient/auth/identity/generic/cli.py b/keystoneclient/auth/identity/generic/cli.py
index c493850..212e9b7 100644
--- a/keystoneclient/auth/identity/generic/cli.py
+++ b/keystoneclient/auth/identity/generic/cli.py
@@ -38,6 +38,7 @@ class DefaultCLI(password.Password):
options.extend([cfg.StrOpt('endpoint',
help='A URL to use instead of a catalog'),
cfg.StrOpt('token',
+ secret=True,
help='Always use the specified token')])
return options