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