check_hobos: fix attribute_mapping if it contains None (#8923)

This commit is contained in:
Benjamin Dauvergne 2015-11-09 10:07:06 +01:00
parent 7d683e7031
commit 300e0a1aca
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ class CmdCheckHobos(Command):
# add mapping for SAML provisioning
for idp in pub.cfg.get('idp', {}).values():
if not 'attribute-mapping' in idp:
if not idp.get('attribute-mapping'):
idp['attribute-mapping'] = {}
for field in profile.get('fields', []):
attribute_name = field['name']