Commit 471a31b6 authored by Andrea Spadaccini's avatar Andrea Spadaccini
Browse files

Fix two pylint errors



- hv_kvm.py: silence F0401, that is raised if pylint does not find the
  affinity module
- rlib2.py: change disable-msg to disable
Signed-off-by: default avatarAndrea Spadaccini <spadaccio@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent c03fe62b
......@@ -37,7 +37,7 @@ import shutil
import socket
import StringIO
try:
import affinity
import affinity # pylint: disable=F0401
except ImportError:
affinity = None
......
......@@ -952,7 +952,7 @@ class R_2_instances_name_replace_disks(baserlib.OpcodeResource):
except KeyError:
pass
else:
if not ht.TListOf(ht.TInt)(raw_disks): # pylint: disable-msg=E1102
if not ht.TListOf(ht.TInt)(raw_disks): # pylint: disable=E1102
# Backwards compatibility for strings of the format "1, 2, 3"
try:
data["disks"] = [int(part) for part in raw_disks.split(",")]
......
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