autostatus
correction de bug darcs-hash:20041022010951-4ec08-42dffe8c85330e2713334ab106ee77fcdb82aea9.gz
This commit is contained in:
parent
96bed6bbac
commit
8cd8a93fad
1 changed files with 6 additions and 2 deletions
|
@ -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=[]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue