mirror of
https://github.com/ansible/awx.git
synced 2026-08-01 18:39:54 -02:30
include M2M labels and credentials in Job creation activity stream
This commit is contained in:
@@ -425,6 +425,11 @@ def activity_stream_create(sender, instance, created, **kwargs):
|
||||
changes = model_to_dict(instance, model_serializer_mapping)
|
||||
# Special case where Job survey password variables need to be hidden
|
||||
if type(instance) == Job:
|
||||
changes['credentials'] = [
|
||||
six.text_type('{} ({})').format(c.name, c.id)
|
||||
for c in instance.credentials.iterator()
|
||||
]
|
||||
changes['labels'] = [l.name for l in instance.labels.iterator()]
|
||||
if 'extra_vars' in changes:
|
||||
changes['extra_vars'] = instance.display_extra_vars()
|
||||
if type(instance) == OAuth2AccessToken:
|
||||
|
||||
Reference in New Issue
Block a user