Make the ckminions always return a list

This commit is contained in:
Thomas S Hatch 2012-10-06 14:31:04 -06:00
parent 5302457f47
commit 6d783db8da

View File

@ -28,7 +28,7 @@ class CkMinions(object):
os.chdir(os.path.join(self.opts['pki_dir'], 'minions'))
ret = set(glob.glob(expr))
os.chdir(cwd)
return ret
return list(ret)
def _check_list_minions(self, expr):
'''
@ -53,7 +53,7 @@ class CkMinions(object):
if reg.match(fn_):
ret.add(fn_)
os.chdir(cwd)
return ret
return list(ret)
def _check_grain_minions(self, expr):
'''