Projet

Général

Profil

connexion_tools.py.patch

Proposition de patch sur le fichier /usr/share/ead2/backend/actions/horus/connexion_tools.py - Joël Cuissinat, 07/01/2015 16:09

Télécharger (778 octets)

Voir les différences:

backend/actions/horus/connexion_tools.py
160 160
            user['nom'] = user_table[1]
161 161
            user['group'] = user_table[2]
162 162
            user['machine'] = user_table[3]
163
            ip = user_table[4]
164
            if ip[0] == '(':
165
                ip = ip [1:]
166
                ip = ip[:-1]
167
            user['ip'] = ip
163
            if user['machine'].startswith('('):
164
                user['machine'] = user['machine'][1:-1]
165
            #user['ip'] = user_table[4]
168 166
            users.append(user)
169 167
    if users == []:
170 168
        return None