def _matches(self):
"""
Returns the list of matched minions
"""
if self.deepsea_minions:
# When search matches no minions, salt prints to stdout.
# Suppress stdout.
_stdout = sys.stdout
sys.stdout = open(os.devnull, 'w')
result = self.local.cmd(self.deepsea_minions,
'pillar.get',
['id'],
expr_form="compound")
sys.stdout = _stdout
return result.keys()
return []
评论列表
文章目录