Add sudo to easy_install pip

If pip installation is required in run_tests.sh it must be
executed with sudo for non-root users.

Change-Id: I0d89a6027d129c9b69811dde4d542f7bc13ca46a
This commit is contained in:
Alfredo Moralejo 2016-05-10 10:28:54 +00:00
parent 4c37e48998
commit c6bfae8c9f
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ $SUDO yum -y install puppet \
"@Development Tools"
# Don't assume pip is installed
which pip || easy_install pip
which pip || $SUDO easy_install pip
# TO-DO: Packstack should handle Hiera and Puppet configuration, so that it works
# no matter the environment