From 71b100d39cd978acfbaa167169686f4e68428b0e Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 9 Nov 2015 10:07:06 +0100 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(-) diff --git a/wcs/ctl/check_hobos.py b/wcs/ctl/check_hobos.py index a85a88c..b6f4f4e 100644 --- a/wcs/ctl/check_hobos.py +++ b/wcs/ctl/check_hobos.py @@ -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'] -- 2.1.4