[fix] Add managersearch node type to so-rule pillar search

This commit is contained in:
William Wernert
2021-02-23 14:15:17 -05:00
parent 9cf15cdae5
commit a361ca0e19

View File

@@ -58,7 +58,7 @@ def check_apply(args: dict, prompt: bool = True):
def find_minion_pillar() -> str: def find_minion_pillar() -> str:
regex = '^.*_(manager|standalone|import|eval)\.sls$' regex = '^.*_(manager|managersearch|standalone|import|eval)\.sls$'
result = [] result = []
for root, _, files in os.walk(minion_pillar_dir): for root, _, files in os.walk(minion_pillar_dir):
@@ -67,7 +67,7 @@ def find_minion_pillar() -> str:
result.append(os.path.join(root, f_minion_id)) result.append(os.path.join(root, f_minion_id))
if len(result) == 0: if len(result) == 0:
print_err('Could not find manager-type pillar (eval, standalone, manager, import). Are you running this script on the manager?') print_err('Could not find manager-type pillar (eval, standalone, manager, managersearch, import). Are you running this script on the manager?')
sys.exit(3) sys.exit(3)
elif len(result) > 1: elif len(result) > 1:
res_str = ', '.join(f'\"{result}\"') res_str = ', '.join(f'\"{result}\"')