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
This commit is contained in:
Steve Martinelli 2014-05-26 11:32:29 -04:00
parent 8b83737363
commit 017cdf2595

View File

@ -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()