summaryrefslogtreecommitdiffstats
path: root/build-gluster-org
diff options
context:
space:
mode:
authordkhandel <dkhandel@localhost.localdomain>2018-06-04 16:30:53 +0530
committerdkhandel <dkhandel@localhost.localdomain>2018-06-04 16:30:53 +0530
commit0c26219bc259d48b7c54e86cec76fcd7244069dc (patch)
tree5be2a0a28b31fc944e58e4a073f823f61e8f5ed8 /build-gluster-org
parent82e6503217ecd7e50d1b515656f12e5bc20babf1 (diff)
Add the key path to subprocess call
Change-Id: Icd23239670522dde1da83d803c0db398ddd578bf
Diffstat (limited to 'build-gluster-org')
-rw-r--r--build-gluster-org/scripts/distributed-regression.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/build-gluster-org/scripts/distributed-regression.py b/build-gluster-org/scripts/distributed-regression.py
index 0d1b50e..cbff281 100644
--- a/build-gluster-org/scripts/distributed-regression.py
+++ b/build-gluster-org/scripts/distributed-regression.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
import subprocess
+import os
from ansible.parsing.dataloader import DataLoader
from ansible.vars.manager import VariableManager
from ansible.inventory.manager import InventoryManager
@@ -18,8 +19,9 @@ 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))
+ '--hosts {0} --id_rsa {1}'.format(ip, key_path))
main()