Skip to content

Commit

Permalink
fix: requests package dependancy for centos
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh6790 committed May 16, 2019
1 parent 75b0901 commit 9fe3a91
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions playbooks/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,18 @@ def install_bench(args):
})

if success:
run_os_command({
'pip': 'sudo pip install --upgrade setuptools requests cryptography pip'
})
dist_name, dist_version = get_distribution_info()
if dist_name == 'centos':
run_os_command({
'pip': 'sudo pip install --upgrade --ignore-installed requests'
})
else:
run_os_command({
'pip': 'sudo pip install --upgrade requests'
})

success = run_os_command({
'pip': "sudo pip install --upgrade cryptography ansible"
'pip': "sudo pip install --upgrade setuptools cryptography ansible pip"
})

if not success:
Expand Down

0 comments on commit 9fe3a91

Please sign in to comment.