mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
disable extraneous activity stream messages for credential creation
see: https://github.com/ansible/ansible-tower/issues/7257
This commit is contained in:
parent
ac11dcac05
commit
d3796e81ba
@ -225,7 +225,13 @@ class PasswordFieldsModel(BaseModel):
|
||||
saved_value = getattr(self, '_saved_%s' % field, '')
|
||||
setattr(self, field, saved_value)
|
||||
self.mark_field_for_save(update_fields, field)
|
||||
self.save(update_fields=update_fields)
|
||||
|
||||
from awx.main.signals import disable_activity_stream
|
||||
with disable_activity_stream():
|
||||
# We've already got an activity stream record for the object
|
||||
# creation, there's no need to have an extra one for the
|
||||
# secondary save for secrets
|
||||
self.save(update_fields=update_fields)
|
||||
|
||||
def encrypt_field(self, field, ask):
|
||||
encrypted = encrypt_field(self, field, ask)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user