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:
parent
8b83737363
commit
017cdf2595
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user