[ldap_crans] ldap_crans ne modifie pas les host, hostAlias d'une machine ayant des certificats

C'est brûtal, mais je n'ai pas tu tout envie d'implémenter les certificat dans ldap_crans.
On moins on peut toujours ajouter de nouveaux alias.
De plus on interdit aussi la suppression d'une telle machine.
This commit is contained in:
Valentin Samir 2014-02-23 17:22:39 +01:00
parent ff88440f2e
commit 328904ae19
2 changed files with 14 additions and 2 deletions

View file

@ -933,7 +933,7 @@ def __prompt_input_menu(method, titre, prompt):
else:
method([num-1, val])
except ValueError, c:
except (EnvironmentError, ValueError) as c:
arg = u'--title "%s" ' % titre
arg += u'--msgbox "%s\n\n\n" 0 0' % to_unicode(c.args[0])
dialog(arg)
@ -1135,7 +1135,7 @@ def confirm(clas):
return 1
try:
res = clas.save()
except RuntimeError, c:
except (EnvironmentError, RuntimeError) as c:
arg = u'--title "Enregistrement" '
arg += u'--msgbox "%s\n\n\n" 0 0' % to_unicode(c.args[0])
dialog(arg)