mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Make the ckminions always return a list
This commit is contained in:
parent
5302457f47
commit
6d783db8da
@ -28,7 +28,7 @@ class CkMinions(object):
|
|||||||
os.chdir(os.path.join(self.opts['pki_dir'], 'minions'))
|
os.chdir(os.path.join(self.opts['pki_dir'], 'minions'))
|
||||||
ret = set(glob.glob(expr))
|
ret = set(glob.glob(expr))
|
||||||
os.chdir(cwd)
|
os.chdir(cwd)
|
||||||
return ret
|
return list(ret)
|
||||||
|
|
||||||
def _check_list_minions(self, expr):
|
def _check_list_minions(self, expr):
|
||||||
'''
|
'''
|
||||||
@ -53,7 +53,7 @@ class CkMinions(object):
|
|||||||
if reg.match(fn_):
|
if reg.match(fn_):
|
||||||
ret.add(fn_)
|
ret.add(fn_)
|
||||||
os.chdir(cwd)
|
os.chdir(cwd)
|
||||||
return ret
|
return list(ret)
|
||||||
|
|
||||||
def _check_grain_minions(self, expr):
|
def _check_grain_minions(self, expr):
|
||||||
'''
|
'''
|
||||||
|
Loading…
Reference in New Issue
Block a user