From 017cdf2595623fc648e48170635503861eaf717f Mon Sep 17 00:00:00 2001 From: Steve Martinelli Date: Mon, 26 May 2014 11:32:29 -0400 Subject: [PATCH] Replace magic value 'service/security' in CadfNotificationWrapper With the 0.4.1 version of pycadf released, we can remove the use of a magic value in the _send_audit_notification function Change-Id: I5b8c33e8867a65eda242a83601e1f58b85c98112 Closes-Bug: #1323341 --- keystone/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keystone/notifications.py b/keystone/notifications.py index 722294674..47c014268 100644 --- a/keystone/notifications.py +++ b/keystone/notifications.py @@ -287,7 +287,7 @@ def _send_audit_notification(action, initiator, outcome): action=action, initiator=initiator, target=resource.Resource(typeURI=taxonomy.ACCOUNT_USER), - observer=resource.Resource(typeURI='service/security')) + observer=resource.Resource(typeURI=taxonomy.SERVICE_SECURITY)) context = {} payload = event.as_dict()