mirror of
https://github.com/ansible/awx.git
synced 2026-02-20 04:30:05 -03:30
disable 2 more types of unhelpful act. str. entries
project local_path changed as a secondary save after creation adding jobs to dependency list (not user facing)
This commit is contained in:
@@ -337,7 +337,9 @@ class Project(UnifiedJobTemplate, ProjectOptions, ResourceMixin):
|
||||
if self.scm_type and not self.local_path.startswith('_'):
|
||||
update_fields.append('local_path')
|
||||
if update_fields:
|
||||
self.save(update_fields=update_fields)
|
||||
from awx.main.signals import disable_activity_stream
|
||||
with disable_activity_stream():
|
||||
self.save(update_fields=update_fields)
|
||||
# If we just created a new project with SCM, start the initial update.
|
||||
if new_instance and self.scm_type and not skip_update:
|
||||
self.update()
|
||||
|
||||
Reference in New Issue
Block a user