mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 20:07:37 -02:30
Raise a validation error if a credential is set while the service is not
This commit is contained in:
@@ -530,7 +530,7 @@ class WebhookTemplateMixin(models.Model):
|
||||
self.webhook_key = ''
|
||||
|
||||
if update_fields and 'webhook_service' in update_fields:
|
||||
update_fields.append('webhook_key')
|
||||
update_fields.add('webhook_key')
|
||||
|
||||
super().save(*args, **kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user