From 5fa8480a6169908fc5c39a5dd486f04b80d01f96 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Wed, 22 Nov 2017 10:28:09 -0800 Subject: [PATCH] Use an abspath for network inventory ssh key path. (cherry picked from commit 1ee511f82c582c7d9a497bcd8fd778ac40324ab1) --- test/runner/lib/executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runner/lib/executor.py b/test/runner/lib/executor.py index 8250c7bfafb..eabde288539 100644 --- a/test/runner/lib/executor.py +++ b/test/runner/lib/executor.py @@ -440,7 +440,7 @@ def network_inventory(remotes): options = dict( ansible_host=remote.connection.hostname, ansible_user=remote.connection.username, - ansible_ssh_private_key_file=remote.ssh_key.key, + ansible_ssh_private_key_file=os.path.abspath(remote.ssh_key.key), ansible_network_os=remote.platform, ansible_connection='local' )