Skip to content

Commit

Permalink
fix(#3969): get service
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebits authored and juliamagan committed Sep 7, 2023
1 parent 1255915 commit 3517a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/wazuh_testing/wazuh_testing/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def get_service():
try:
output = subprocess.check_output([f"{WAZUH_PATH}/bin/wazuh-control", "info", "-t"],
stderr=subprocess.PIPE).decode('utf-8').strip()
service = 'wazuh-manager' if service == 'server' else 'wazuh-agent'
service = 'wazuh-manager' if output == 'server' else 'wazuh-agent'
except Exception:
service = 'N/A'

Expand Down

0 comments on commit 3517a33

Please sign in to comment.