From 2af8bfe671b0aa25cea41fb5e93c9137d846297f Mon Sep 17 00:00:00 2001 From: Ahmed Bilal Khalid Date: Sun, 8 Sep 2019 21:00:53 +0500 Subject: [PATCH] a --- app/api.py | 4 ++-- app/file.py | 4 ++-- app/helper.py | 4 ++-- app/host.py | 4 ++-- app/image.py | 4 ++-- app/scheduler.py | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app/api.py b/app/api.py index 8fd3473..cbba057 100644 --- a/app/api.py +++ b/app/api.py @@ -54,5 +54,5 @@ def setup(path, auth_name, auth_seed, auth_realm, ) # Create virtualenv with site-packages enabled and install all dependencies - sp.check_output(['pipenv','--site-packages', '--python', '3'], path=repo_name) - sp.check_output(['pipenv', 'install'], path=repo_name) + sp.check_output(['pipenv','--site-packages', '--python', '3'], cwd=repo_name) + sp.check_output(['pipenv', 'install'], cwd=repo_name) diff --git a/app/file.py b/app/file.py index 6cc9fa7..0a6826c 100644 --- a/app/file.py +++ b/app/file.py @@ -36,8 +36,8 @@ def setup(path, base_dir, file_prefix, etcd_url): clone_etcd_wrapper() # Create virtualenv with site-packages enabled and install all dependencies - sp.check_output(['pipenv','--site-packages', '--python', '3'], path=repo_name) - sp.check_output(['pipenv', 'install'], path=repo_name) + sp.check_output(['pipenv','--site-packages', '--python', '3'], cwd=repo_name) + sp.check_output(['pipenv', 'install'], cwd=repo_name) # Write Crontab entry with open("/etc/crontabs/root", "a") as crontab: diff --git a/app/helper.py b/app/helper.py index b6ef7e8..ffda8a7 100644 --- a/app/helper.py +++ b/app/helper.py @@ -26,12 +26,12 @@ def clone(repo): def clone_common(path='.'): sp.check_output(['git', 'clone', - f'https://code.ungleich.ch/ungleich-public/ucloud_common'], path=path) + f'https://code.ungleich.ch/ungleich-public/ucloud_common'], cwd=path) def clone_etcd_wrapper(path='.'): sp.check_output(['git', 'clone', - f'https://code.ungleich.ch/ahmedbilal/etcd3_wrapper'], path=path) + f'https://code.ungleich.ch/ahmedbilal/etcd3_wrapper'], cwd=path) class Result(object): diff --git a/app/host.py b/app/host.py index d92e4e9..65b6902 100644 --- a/app/host.py +++ b/app/host.py @@ -50,5 +50,5 @@ def setup(path, ssh_username, ssh_key_path, ssh_key_pass, etcd_url, without_ceph ) # Create virtualenv with site-packages enabled and install all dependencies - sp.check_output(['pipenv','--site-packages', '--python', '3'], path=repo_name) - sp.check_output(['pipenv', 'install'], path=repo_name) \ No newline at end of file + sp.check_output(['pipenv','--site-packages', '--python', '3'], cwd=repo_name) + sp.check_output(['pipenv', 'install'], cwd=repo_name) \ No newline at end of file diff --git a/app/image.py b/app/image.py index a98a240..5b0b702 100644 --- a/app/image.py +++ b/app/image.py @@ -36,8 +36,8 @@ def setup(path, base_dir, etcd_url, without_ceph): clone_etcd_wrapper() # Create virtualenv with site-packages enabled and install all dependencies - sp.check_output(['pipenv','--site-packages', '--python', '3'], path=repo_name) - sp.check_output(['pipenv', 'install'], path=repo_name) + sp.check_output(['pipenv','--site-packages', '--python', '3'], cwd=repo_name) + sp.check_output(['pipenv', 'install'], cwd=repo_name) # Write Crontab entry with open("/etc/crontabs/root", "a") as crontab: diff --git a/app/scheduler.py b/app/scheduler.py index 84ae1bc..d3e9448 100644 --- a/app/scheduler.py +++ b/app/scheduler.py @@ -48,5 +48,5 @@ def setup(path, vm_prefix, host_prefix, request_prefix, etcd_url): ) # Create virtualenv with site-packages enabled and install all dependencies - sp.check_output(['pipenv','--site-packages', '--python', '3'], path=repo_name) - sp.check_output(['pipenv', 'install'], path=repo_name) \ No newline at end of file + sp.check_output(['pipenv','--site-packages', '--python', '3'], cwd=repo_name) + sp.check_output(['pipenv', 'install'], cwd=repo_name) \ No newline at end of file