0001-check_hobos-fix-attribute_mapping-if-it-contains-Non.patch
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 |
- |