mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 05:01:19 -03:30
change the logic to not break existing policy_instance testing
This commit is contained in:
parent
d0327fc044
commit
1f05372ac9
@ -294,8 +294,8 @@ def on_instance_group_saved(sender, instance, created=False, raw=False, **kwargs
|
||||
if created or instance.has_policy_changes():
|
||||
if not instance.is_containerized:
|
||||
schedule_policy_task()
|
||||
if created or instance.is_containerized:
|
||||
instance.set_default_policy_fields()
|
||||
elif created or instance.is_containerized:
|
||||
instance.set_default_policy_fields()
|
||||
|
||||
|
||||
@receiver(post_save, sender=Instance)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user