Commit 3779121c authored by René Nussbaumer's avatar René Nussbaumer Committed by Michael Hanselmann
Browse files

Pylint cleanup



The previous commits introduced some pylint errors.
Signed-off-by: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 2f441f72
......@@ -287,10 +287,11 @@ def BatchCreate(opts, args):
if unknown:
# TODO: Suggest closest match for more user friendly experience
raise errors.OpPrereqError("Unknown fields: %s" %
utils.CommaJoin(unknown), errors.ECODE_INVAL)
raise errors.OpPrereqError("Unknown fields in definition %s: %s" %
(idx, utils.CommaJoin(unknown)),
errors.ECODE_INVAL)
op = opcodes.OpInstanceCreate(**inst)
op = opcodes.OpInstanceCreate(**inst) # pylint: disable=W0142
op.Validate(False)
instances.append(op)
......
......@@ -1265,7 +1265,7 @@ class OpInstanceMultiAlloc(OpCode):
"""
OpCode.Validate(self, set_defaults)
for inst in self.instances:
for inst in self.instances: # pylint: disable=E1101
inst.Validate(set_defaults)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment