8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 20:03:11 +00:00

Regen le dns quand modification de cname

This commit is contained in:
chirac 2017-09-01 18:47:34 +02:00 committed by root
parent 50c9b1c834
commit 4078c1f55a

View file

@ -353,7 +353,6 @@ def machine_post_save(sender, **kwargs):
user = kwargs['instance'].user
user.ldap_sync(base=False, access_refresh=False, mac_refresh=True)
regen('dhcp')
regen('dns')
regen('mac_ip_list')
@receiver(post_delete, sender=Machine)
@ -361,7 +360,6 @@ def machine_post_delete(sender, **kwargs):
machine = kwargs['instance']
user = machine.user
user.ldap_sync(base=False, access_refresh=False, mac_refresh=True)
regen('dns')
regen('dhcp')
regen('mac_ip_list')
@ -371,7 +369,6 @@ def interface_post_save(sender, **kwargs):
user = interface.machine.user
user.ldap_sync(base=False, access_refresh=False, mac_refresh=True)
regen('dhcp')
regen('dns')
regen('mac_ip_list')
@receiver(post_delete, sender=Interface)
@ -390,3 +387,11 @@ def machine_post_save(sender, **kwargs):
machinetype = kwargs['instance']
for interface in machinetype.all_interfaces():
interface.update_type()
@receiver(post_save, sender=Domain)
def domain_post_save(sender, **kwargs):
regen('dns')
@receiver(post_save, sender=Domain)
def domain_post_save(sender, **kwargs):
regen('dns')