diff --git a/drivers/LinstorSR.py b/drivers/LinstorSR.py index 5c7f6c35d..f4061065c 100755 --- a/drivers/LinstorSR.py +++ b/drivers/LinstorSR.py @@ -846,9 +846,8 @@ def scan(self, uuid): # Update the database before the restart of the GC to avoid # bad sync in the process if new VDIs have been introduced. - ret = super(LinstorSR, self).scan(self.uuid) + super(LinstorSR, self).scan(self.uuid) self._kick_gc() - return ret @_locked_load def vdi(self, uuid): diff --git a/tests/pylintrc b/tests/pylintrc index a982913b3..4588675ba 100644 --- a/tests/pylintrc +++ b/tests/pylintrc @@ -84,7 +84,7 @@ ignored-classes=SQLObject # List of members which are set dynamically and missed by pylint inference # system, and so shouldn't trigger E0201 when accessed. -generated-members=REQUEST,acl_users,aq_parent +generated-members=REQUEST,acl_users,aq_parent,linstor.* # List of module names for which member attributes should not be checked # # (useful for modules/projects where namespaces are manipulated during runtime diff --git a/tests/test_MooseFSSR.py b/tests/test_MooseFSSR.py index feaac6267..f4e0a852f 100644 --- a/tests/test_MooseFSSR.py +++ b/tests/test_MooseFSSR.py @@ -1,4 +1,6 @@ -import mock +from unittest import mock +import unittest + import MooseFSSR import unittest diff --git a/tests/test_ZFSSR.py b/tests/test_ZFSSR.py index e95ab7eb6..ac2c6eb7b 100644 --- a/tests/test_ZFSSR.py +++ b/tests/test_ZFSSR.py @@ -1,8 +1,9 @@ +from unittest import mock +import unittest + import FileSR -import mock import os import SR -import unittest import ZFSSR