mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Cleanup pylint errors
This commit is contained in:
parent
a823299d96
commit
27c62bf046
@ -124,7 +124,6 @@ class CkMinions(object):
|
||||
except OSError:
|
||||
return []
|
||||
|
||||
|
||||
def _check_list_minions(self, expr, greedy): # pylint: disable=unused-argument
|
||||
'''
|
||||
Return the minions found by looking via a list
|
||||
@ -287,8 +286,10 @@ class CkMinions(object):
|
||||
'Range matcher unavailable (unable to import seco.range, '
|
||||
'module most likely not installed)'
|
||||
)
|
||||
if not hasattr(self, '_range'):
|
||||
self._range = seco.range.Range(self.opts['range_server'])
|
||||
try:
|
||||
return range_.expand(expr)
|
||||
return self._range.expand(expr)
|
||||
except seco.range.RangeException as exc:
|
||||
log.error(
|
||||
'Range exception in compound match: {0}'.format(exc)
|
||||
|
Loading…
Reference in New Issue
Block a user