diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 2927f86e..3e970e00 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -1949,7 +1949,7 @@ class machine(base_classes_crans) : Enregistre la machine courante dans la base LDAP Retourne une chaîne indiquant les opération effectuées. """ - if self.proprietaire() == crans and not isadm : + if self.proprietaire().Nom() == "Crans" and not isadm : raise EnvironmentError(u'Il faut être administrateur pour effectuer cette opération.') ret ='' @@ -1976,7 +1976,11 @@ class machine(base_classes_crans) : if bl and ( 'ipHostNumber' in self.modifs or 'host' in self.modifs ): for s in bl : self.services_to_restart(s,[ self.ip() ] ) - + + # Regénération de l'autostatus ? + if self.proprietaire().Nom() == "Crans" : + self.services_to_restart('autostatus') + # Remise à zéro self.modifs=[]