From f7dcf020fb51b75a4f3b673280500795d4048857 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 26 Nov 2018 12:46:50 -0800 Subject: [PATCH] check-compose: Try and fix 'py2 is installed' detection Signed-off-by: Adam Williamson --- roles/check-compose/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/check-compose/tasks/main.yml b/roles/check-compose/tasks/main.yml index a6fc2ed5a4..330a79f305 100644 --- a/roles/check-compose/tasks/main.yml +++ b/roles/check-compose/tasks/main.yml @@ -83,7 +83,7 @@ - name: Remove check-compose (Python 2) command: "pip2 uninstall --disable-pip-version-check --yes check-compose" - when: "py2ccinstalled is defined and py2ccinstalled and 'python34-fedmsg' in group_names" + when: "py2ccinstalled is defined and py2ccinstalled.files and 'python34-fedmsg' in group_names" notify: - restart fedmsg-hub @@ -91,7 +91,7 @@ command: "python3 setup.py install" args: chdir: /root/check-compose - when: "(gitcc is changed or (py2ccinstalled is defined and py2ccinstalled)) and 'python34-fedmsg' in group_names" + when: "(gitcc is changed or (py2ccinstalled is defined and py2ccinstalled.files)) and 'python34-fedmsg' in group_names" notify: - restart fedmsg-hub