diff --git a/deployability/modules/testing/tests/helpers/generic.py b/deployability/modules/testing/tests/helpers/generic.py index 26b0588c23..8bfc28aa73 100644 --- a/deployability/modules/testing/tests/helpers/generic.py +++ b/deployability/modules/testing/tests/helpers/generic.py @@ -275,12 +275,12 @@ def scp_to(from_inventory_path, to_inventory_path, file_name) -> None: from_host = socket.gethostbyname(from_inventory_data.get('ansible_host')) from_key = from_inventory_data.get('ansible_ssh_private_key_file') from_user = from_inventory_data.get('ansible_user') - from_port = from_inventory_data.get('ansible_port:') + from_port = from_inventory_data.get('ansible_port') to_host = socket.gethostbyname(to_inventory_data.get('ansible_host')) to_key = to_inventory_data.get('ansible_ssh_private_key_file') to_user = from_inventory_data.get('ansible_user') - to_port = to_inventory_data.get('ansible_port:') + to_port = to_inventory_data.get('ansible_port') # Allowing handling permissions if file_name == 'wazuh-install-files.tar':