From c269efc30aa69b8439a32d9aff2ac98b9fadcdf3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ren=C3=A9=20Nussbaumer?= <rn@google.com>
Date: Tue, 11 Sep 2012 10:37:59 +0200
Subject: [PATCH] Disable pylint warnings for unknown members
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

For some reason pylint can't determine, that the members are calculated
upon runtime and complains. This is weird as the same mechanism works on
opcode/objects. I haven't found the issue for it yet, so let's just
ignore the warnings for now.

This is a separate patch for easier revert later on, once it's fixed.

Signed-off-by: RenΓ© Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
---
 lib/masterd/iallocator.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/masterd/iallocator.py b/lib/masterd/iallocator.py
index 9e73956cd..00f6ed9e6 100644
--- a/lib/masterd/iallocator.py
+++ b/lib/masterd/iallocator.py
@@ -141,6 +141,7 @@ class IAReqInstanceAlloc(IARequestBase):
   """An instance allocation request.
 
   """
+  # pylint: disable=E1101
   MODE = constants.IALLOCATOR_MODE_ALLOC
   REQ_PARAMS = [
     ("name", ht.TString),
@@ -190,6 +191,7 @@ class IAReqMultiInstanceAlloc(IARequestBase):
   """An multi instance allocation request.
 
   """
+  # pylint: disable=E1101
   MODE = constants.IALLOCATOR_MODE_MULTI_ALLOC
   REQ_PARAMS = [
     ("instances", ht.TListOf(ht.TInstanceOf(IAReqInstanceAlloc)))
@@ -213,6 +215,7 @@ class IAReqRelocate(IARequestBase):
   """A relocation request.
 
   """
+  # pylint: disable=E1101
   MODE = constants.IALLOCATOR_MODE_RELOC
   REQ_PARAMS = [
     ("name", ht.TString),
@@ -310,6 +313,7 @@ class IAReqNodeEvac(IARequestBase):
   """A node evacuation request.
 
   """
+  # pylint: disable=E1101
   MODE = constants.IALLOCATOR_MODE_NODE_EVAC
   REQ_PARAMS = [
     ("instances", _STRING_LIST),
@@ -331,6 +335,7 @@ class IAReqGroupChange(IARequestBase):
   """A group change request.
 
   """
+  # pylint: disable=E1101
   MODE = constants.IALLOCATOR_MODE_CHG_GROUP
   REQ_PARAMS = [
     ("instances", _STRING_LIST),
-- 
GitLab