summaryrefslogtreecommitdiff
path: root/keystone/auth/plugins
diff options
context:
space:
mode:
authorNavid Pustchi <npustchi@gmail.com>2016-04-19 22:28:01 +0000
committerNavid Pustchi <npustchi@gmail.com>2016-04-21 15:25:34 +0000
commit2c4f948db025fb276dfe32eb428a0a68ed879f57 (patch)
tree1ef35b493df91c4859d30f234672dc7297af0552 /keystone/auth/plugins
parente380a3c005aa1c045bc15ef884edf3d0e20032f7 (diff)
downloadkeystone-2c4f948db025fb276dfe32eb428a0a68ed879f57.tar.gz
Fix D400 PEP257
Currently tox ignores D401. D400: First line should end with a period. This change removes it and make keystone docstring compliantwith it. Change-Id: I9a9520e69701718ff471eebbcc52199dacdd9c68
Diffstat (limited to 'keystone/auth/plugins')
-rw-r--r--keystone/auth/plugins/external.py2
-rw-r--r--keystone/auth/plugins/totp.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/keystone/auth/plugins/external.py b/keystone/auth/plugins/external.py
index b00b808ae..950afe4d4 100644
--- a/keystone/auth/plugins/external.py
+++ b/keystone/auth/plugins/external.py
@@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
-"""Keystone External Authentication Plugins"""
+"""Keystone External Authentication Plugins."""
import abc
diff --git a/keystone/auth/plugins/totp.py b/keystone/auth/plugins/totp.py
index d0b61b3b6..b94b7573e 100644
--- a/keystone/auth/plugins/totp.py
+++ b/keystone/auth/plugins/totp.py
@@ -10,7 +10,7 @@
# License for the specific language governing permissions and limitations
# under the License.
-"""Time-based One-time Password Algorithm (TOTP) auth plugin
+"""Time-based One-time Password Algorithm (TOTP) auth plugin.
TOTP is an algorithm that computes a one-time password from a shared secret
key and the current time.
@@ -69,7 +69,7 @@ def _generate_totp_passcode(secret):
class TOTP(auth.AuthMethodHandler):
def authenticate(self, context, auth_payload, auth_context):
- """Try to authenticate using TOTP"""
+ """Try to authenticate using TOTP."""
user_info = plugins.TOTPUserInfo.create(auth_payload, METHOD_NAME)
auth_passcode = auth_payload.get('user').get('passcode')