Code qui a introduit plus de bug qu'il n'en a résolu
This commit is contained in:
parent
cb0fda8c6c
commit
9ea84a34bc
1 changed files with 4 additions and 4 deletions
|
@ -91,7 +91,7 @@ class Dialog(certificat.Dialog, blacklist.Dialog):
|
|||
def modif_machine(machine, attrs):
|
||||
with self.conn.search(dn=machine.dn, scope=0, mode='rw')[0] as machine:
|
||||
for (key, values) in attrs.items():
|
||||
if values!=u'<automatique>':
|
||||
#if values!=u'<automatique>':
|
||||
machine[key]=values
|
||||
machine.validate_changes()
|
||||
machine.history_gen()
|
||||
|
@ -108,7 +108,7 @@ class Dialog(certificat.Dialog, blacklist.Dialog):
|
|||
}
|
||||
with self.conn.newMachine(proprio.dn, realm, ldif) as machine:
|
||||
for (key, values) in attrs.items():
|
||||
if values!=u'<automatique>':
|
||||
#if values!=u'<automatique>':
|
||||
machine[key]=values
|
||||
if attributs.ipsec in machine.attribs:
|
||||
machine[attributs.ipsec.ldap_name]=attributs.ipsec.default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue