Fix linter

This commit is contained in:
Daniel A. Wozniak 2019-04-27 09:32:23 +00:00 committed by Pedro Algarvio
parent 52ca668360
commit 1eea9908e9
No known key found for this signature in database
GPG Key ID: BB36BF6584A298FF

View File

@ -22,11 +22,10 @@ try:
HAS_LIBCLOUD = True
except ImportError:
HAS_LIBCLOUD = False
MockLBDriver = object
if HASLIBCLOUD:
if HAS_LIBCLOUD:
class MockLBDriver(BaseDriver):
def __init__(self):
def __init__(self): # pylint: disable=W0231
self._TEST_BALANCER = LoadBalancer(
id='test_id', name='test_balancer',
state=0, # RUNNING
@ -80,6 +79,10 @@ if HASLIBCLOUD:
return [self._TEST_MEMBER]
else:
MockLBDriver = object
def get_mock_driver():
return MockLBDriver()