]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
bs check for ansible<5
authorZack Cerza <zack@cerza.org>
Thu, 28 Apr 2022 21:49:25 +0000 (15:49 -0600)
committerZack Cerza <zack@cerza.org>
Thu, 28 Apr 2022 21:49:25 +0000 (15:49 -0600)
bootstrap

index 1f0821ea2d6e399cd3cd1ef5eae3e96cd0f75d4a..a4b955a052dc3c5f6ee95cb3d7871c29631d24f5 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -157,7 +157,7 @@ fi
 # See https://docs.ansible.com/ansible/devel/porting_guides/porting_guide_2.10.html#known-issues
 if [ -f "$VENV/bin/ansible" ]; then
     ansible_version=$($VENV/bin/pip list --format json | python3 -c "import sys; import json; print(list(filter(lambda i: i['name'] == 'ansible', json.loads(sys.stdin.read())))[0]['version'])")
-    uninstall_ansible=$(./$VENV/bin/python3 -c "from packaging.version import parse; print(parse('$ansible_version') < parse('2.10.0'))")
+    uninstall_ansible=$(./$VENV/bin/python3 -c "from packaging.version import parse; print(parse('$ansible_version') < parse('5.0'))")
     if [ "$uninstall_ansible" = "True" ]; then
         ./$VENV/bin/pip uninstall -y ansible
     fi