mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
[fix] Add managersearch node type to so-rule pillar search
This commit is contained in:
@@ -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}\"')
|
||||||
|
|||||||
Reference in New Issue
Block a user