]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-pull-requests: activate the venv for the version check 309/head
authorAndrew Schoen <aschoen@redhat.com>
Mon, 25 Jan 2016 21:59:30 +0000 (15:59 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 25 Jan 2016 22:00:42 +0000 (16:00 -0600)
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 <aschoen@redhat.com>
ceph-ansible-pull-requests/build/build

index 3f7a16a75684dc7292c2ea23fe6a723436008756..b2af8029a96bd0791cddbdb10897ada04a193981 100644 (file)
@@ -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