From c59c1007952f8e9cd2cadb38b63016f2af909876 Mon Sep 17 00:00:00 2001 From: pauget Date: Fri, 17 Dec 2004 00:49:50 +0100 Subject: [PATCH] Bug : oubli de config du switch lors de l'inscritpion. darcs-hash:20041216234950-41617-8fa0e9452d15deba3b0124c80b0073446e4e15f9.gz --- gestion/ldap_crans.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 6c1662cb..a370a78c 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -2034,6 +2034,10 @@ class machine(base_classes_crans) : """ if self.proprietaire().__class__ == crans and not isadm : raise EnvironmentError(u'Il faut être administrateur pour effectuer cette opération.') + + if not self._init_data : + # Nouvelle machine => configuration prise + self.services_to_restart('switch',[self.proprietaire().chbre()]) ret =''