pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0232-Disable-pylint-in-get_help-function-because-of-type-.patch

460745
From df9933a8cbc5c6cf4041709ed61c589adaae7a08 Mon Sep 17 00:00:00 2001
460745
From: David Kreitschmann <david@kreitschmann.de>
460745
Date: Fri, 9 Jun 2017 17:59:35 +0200
460745
Subject: [PATCH] Disable pylint in get_help function because of type
460745
 confusion.
460745
460745
Reviewed-By: David Kupka <dkupka@redhat.com>
460745
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
460745
Reviewed-By: David Kupka <dkupka@redhat.com>
460745
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
460745
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
460745
---
460745
 ipaclient/remote_plugins/schema.py | 4 +++-
460745
 1 file changed, 3 insertions(+), 1 deletion(-)
460745
460745
diff --git a/ipaclient/remote_plugins/schema.py b/ipaclient/remote_plugins/schema.py
460745
index 9b6668d26352a24d7249bac5e304277563ee450f..2892ab9ec7c6fb092ef470b7e5bd2b9c0760c2af 100644
460745
--- a/ipaclient/remote_plugins/schema.py
460745
+++ b/ipaclient/remote_plugins/schema.py
460745
@@ -516,7 +516,9 @@ class Schema(object):
460745
 
460745
     def get_help(self, namespace, member):
460745
         if isinstance(self._help, bytes):
460745
-            self._help = json.loads(self._help.decode('utf-8'))
460745
+            self._help = json.loads(
460745
+                self._help.decode('utf-8')  # pylint: disable=no-member
460745
+            )
460745
 
460745
         return self._help[namespace][member]
460745
 
460745
-- 
460745
2.13.5
460745