Ne plante pas si les machines crans sont en mac auto
This commit is contained in:
parent
7a9dd65698
commit
712b256943
1 changed files with 2 additions and 1 deletions
|
@ -90,6 +90,7 @@ class machines(gen_config):
|
|||
if not m['macAddress'][0].value == '<automatique>':
|
||||
curseur.execute("INSERT INTO machines (mac_addr, type, id) VALUES ('%s','adherent',%s);" % (m['macAddress'][0], m.proprio()['aid'][0].value))
|
||||
elif m.proprio().__class__ == lc_ldap.objets.AssociationCrans:
|
||||
if not m['macAddress'][0].value == '<automatique>':
|
||||
curseur.execute("INSERT INTO machines (mac_addr, type, id) VALUES ('%s','crans',%s);" % (m['macAddress'][0], m['mid'][0].value))
|
||||
# on commit
|
||||
pgsql.commit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue