From bb1e6d03aebfd131591c98bac47bfe24d7ffd98c Mon Sep 17 00:00:00 2001 From: Nam Nguyen Hoai Date: Thu, 29 Sep 2016 10:24:20 +0700 Subject: [PATCH] Fix typo in docstring Change-Id: If907bd4e1d29c555565d12d4f33604e514090d99 --- keystone/notifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keystone/notifications.py b/keystone/notifications.py index 25e0666b55..5c920c132d 100644 --- a/keystone/notifications.py +++ b/keystone/notifications.py @@ -481,7 +481,7 @@ class CadfNotificationWrapper(object): def __call__(self, f): @functools.wraps(f) def wrapper(wrapped_self, request, user_id, *args, **kwargs): - """Alway send a notification.""" + # Always send a notification. initiator = _get_request_audit_info(request.context_dict, user_id) target = resource.Resource(typeURI=taxonomy.ACCOUNT_USER) try: @@ -719,7 +719,7 @@ def _check_notification_opt_out(event_type, outcome): """ # NOTE(stevemar): Special handling for authenticate, we look at the outcome # as well when evaluating. For authN events, event_type is just - # idenitity.authenticate, which isn't fine enough to provide any opt-out + # identity.authenticate, which isn't fine enough to provide any opt-out # value, so we attach the outcome to re-create the meter name used in # ceilometer. if 'authenticate' in event_type: