summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkhandel <dkhandel@localhost.localdomain>2018-06-04 23:57:06 +0530
committerdkhandel <dkhandel@localhost.localdomain>2018-06-04 23:57:06 +0530
commit70504bd0eafc2d35786e509f13561e2e002b073e (patch)
treea5a23a35387c2fe8c6f305dc432e5396d8087788
parent104c9256ba5e571e9c77576c8baff37eb1208c62 (diff)
Add the private SSH key path in subrocess call
Change-Id: I9657c7505e2cc352561277e7c54a3a5e1832b9e2
-rw-r--r--build-gluster-org/scripts/distributed-regression.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/build-gluster-org/scripts/distributed-regression.py b/build-gluster-org/scripts/distributed-regression.py
index a0f8014..56e724b 100644
--- a/build-gluster-org/scripts/distributed-regression.py
+++ b/build-gluster-org/scripts/distributed-regression.py
@@ -19,9 +19,7 @@ def get_ansible_host_ip():
def main():
ip = get_ansible_host_ip()
- key_path = os.path.join(os.environ.get('WORKSPACE'), 'key')
- subprocess.call('/extras/distributed-testing/distributed-test.sh '
- '--hosts {0} --id_rsa {1}'.format(ip, key_path))
+ subprocess.call("./extras/distributed-testing/distributed-test.sh --hosts {0} --id_rsa 'key'".format(ip))
main()