mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 04:00:06 -03:30
Merge pull request #36 from AlanCoding/dont_tell_me_twice
Disable activity stream messages for copying labels on job launch
This commit is contained in:
@@ -359,7 +359,9 @@ class UnifiedJobTemplate(PolymorphicModel, CommonModelNameNotUnique, Notificatio
|
|||||||
unified_job.save()
|
unified_job.save()
|
||||||
|
|
||||||
# Labels and extra credentials copied here
|
# Labels and extra credentials copied here
|
||||||
copy_m2m_relationships(self, unified_job, fields, kwargs=kwargs)
|
from awx.main.signals import disable_activity_stream
|
||||||
|
with disable_activity_stream():
|
||||||
|
copy_m2m_relationships(self, unified_job, fields, kwargs=kwargs)
|
||||||
return unified_job
|
return unified_job
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user