From 78c4838bcf3528018b06d73d1b82bde7f575f2db Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 16 Sep 2019 09:38:19 -0400 Subject: [PATCH] Disable deprecated-lambda check in adtrust upgrade code It is interesting that we don't have this problem with newer Python and pylint versions. Ignoring to try to keep the code more in line with newer releases. Reviewed-By: Rob Crittenden Reviewed-By: Florence Blanc-Renaud --- ipaserver/install/plugins/adtrust.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ipaserver/install/plugins/adtrust.py b/ipaserver/install/plugins/adtrust.py index fca83aa6df2cc3fafca91f2ed55339dba016a1fa..950b7b9c82f1b0e115675ff8093d1bd02e913ae2 100644 --- a/ipaserver/install/plugins/adtrust.py +++ b/ipaserver/install/plugins/adtrust.py @@ -583,6 +583,7 @@ class update_tdo_to_new_layout(Updater): # Old style, no ipaAllowedToPerform;read_keys in the entry, # use defaults that ipasam should have set when creating a # trust + # pylint: disable=deprecated-lambda read_keys = list(map( lambda x: x.format(basedn=self.api.env.basedn), trust_read_keys_template)) @@ -770,6 +771,7 @@ class update_tdo_default_read_keys_permissions(Updater): read_keys = tdo.get('ipaAllowedToPerform;read_keys', []) if not read_keys: + # pylint: disable=deprecated-lambda read_keys_values = list(map( lambda x: x.format(basedn=self.api.env.basedn), trust_read_keys_template)) -- 2.20.1