From 7b0adb2ea9b254766c3a50c697c45f556bdc3ff9 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Wed, 10 Dec 2014 22:35:25 +0100 Subject: [PATCH] gest_crans: deal with lack of "ipHostNumber" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Si on laisse le filtre ipHostNumber=*, ça ne filtre que les machines qui ont une adresse IP. --- gestion/gest_crans.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index d6bfc6c6..ac44dffd 100755 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -2377,6 +2377,10 @@ def select(clas, quoi, mde=''): dialog(arg) continue + # Champs qui n'existent peut-être pas sur une machine + for champ in ['ipHostNumber']: + filtre = filtre.replace('%s=*&' % champ, '') + ### Recherche try: if mde == 'ro':