mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 08:35:21 +00:00
Fix linter
This commit is contained in:
parent
52ca668360
commit
1eea9908e9
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user