diff options
author | lin-hua-cheng <os.lcheng@gmail.com> | 2016-01-13 13:03:51 -0800 |
---|---|---|
committer | lin-hua-cheng <os.lcheng@gmail.com> | 2016-01-13 13:03:51 -0800 |
commit | 77ed0d4d0c3413b15aa348613b8b40373bd5765b (patch) | |
tree | 01e67a56791a4575eb28ee25de46cd6111035bde /keystoneclient/utils.py | |
parent | 7327067f98f5e118790817f7c81e444c7fe7c25b (diff) | |
download | python-keystoneclient-77ed0d4d0c3413b15aa348613b8b40373bd5765b.tar.gz |
Address hacking check H405
Previously, there were a string of commits to keystone that addresed ignored
hacking checks. This commit does the same for H405 in keystoneclient. This
also modifies our tox.ini so that we no longer ignore H405 violations.
Change-Id: I2af152e5425a0e9c82314039fdbb90d661c22680
Closes-Bug: 1482773
Diffstat (limited to 'keystoneclient/utils.py')
-rw-r--r-- | keystoneclient/utils.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/keystoneclient/utils.py b/keystoneclient/utils.py index 5017431..3152c59 100644 --- a/keystoneclient/utils.py +++ b/keystoneclient/utils.py @@ -134,7 +134,9 @@ def unauthenticated(f): def isunauthenticated(f): - """Checks to see if the function is marked as not requiring authentication + """Check if function requires authentication. + + Checks to see if the function is marked as not requiring authentication with the @unauthenticated decorator. Returns True if decorator is set to True, False otherwise. @@ -167,8 +169,10 @@ def prompt_user_password(): def prompt_for_password(): - """Prompt user for password if not provided so the password - doesn't show up in the bash history. + """Prompt user for password if not provided. + + Prompt is used so the password doesn't show up in the + bash history. """ if not (hasattr(sys.stdin, 'isatty') and sys.stdin.isatty()): # nothing to do |