Skip to content

Commit

Permalink
fix(#5229): Removing duplicated get_agent_ip_status_and_name_by_id me…
Browse files Browse the repository at this point in the history
…thod
  • Loading branch information
pro-akim committed May 2, 2024
1 parent cff53a3 commit e2a5722
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions deployability/modules/testing/tests/helpers/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,26 +510,6 @@ def get_agent_ip_status_and_name_by_id(wazuh_api: WazuhAPI, identifier):
return [None, None, None]


def get_agent_ip_status_and_name_by_id(wazuh_api: WazuhAPI, identifier):
"""
Get IP status and name by ID.
Args:
identifier (str): Agent ID.
Returns:
List: IP, name, and status of the agent.
"""
try:
agents_information = wazuh_api.get_agents_information()
for element in agents_information:
if element['id'] == identifier:
return [element['ip'], element['name'], element['status']]
except Exception as e:
logger.error(f"Unexpected error: {e}")
return [None, None, None]


def get_agent_os_version_by_name(wazuh_api: WazuhAPI, agent_name):
"""
Get Agent os version by Agent name
Expand Down

0 comments on commit e2a5722

Please sign in to comment.