mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
Fix linter
This commit is contained in:
parent
52ca668360
commit
1eea9908e9
1 changed files with 6 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue