From: Andrew Schoen Date: Mon, 25 Jan 2016 21:59:30 +0000 (-0600) Subject: ceph-ansible-pull-requests: activate the venv for the version check X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=7e6f8ced9fc90515dd6aa58d4176518e0ed2b918;p=ceph-build.git ceph-ansible-pull-requests: activate the venv for the version check If we don't activate our virtualenv ceph-ansible can not find ansible to perform its version check and fails. Signed-off-by: Andrew Schoen --- diff --git a/ceph-ansible-pull-requests/build/build b/ceph-ansible-pull-requests/build/build index 3f7a16a7..b2af8029 100644 --- a/ceph-ansible-pull-requests/build/build +++ b/ceph-ansible-pull-requests/build/build @@ -4,6 +4,9 @@ pkgs=( "ansible" ) install_python_packages "pkgs[@]" +# ceph-ansible does a check on the installed version of ansible and +# without our virtualenv activated it can not find it and fails +source $VENV/activate cd "$WORKSPACE"/ceph-ansible $VENV/ansible-playbook -i "localhost," -c local test.yml