Projet

Général

Profil

0001-check_hobos-fix-attribute_mapping-if-it-contains-Non.patch

Benjamin Dauvergne, 09 novembre 2015 10:07

Télécharger (882 octets)

Voir les différences:

Subject: [PATCH] check_hobos: fix attribute_mapping if it contains None
 (#8923)

 wcs/ctl/check_hobos.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/ctl/check_hobos.py
149 149

  
150 150
        # add mapping for SAML provisioning
151 151
        for idp in pub.cfg.get('idp', {}).values():
152
            if not 'attribute-mapping' in idp:
152
            if not idp.get('attribute-mapping'):
153 153
                idp['attribute-mapping'] = {}
154 154
            for field in profile.get('fields', []):
155 155
                attribute_name = field['name']
156
-