check-compose: Try and fix 'py2 is installed' detection
Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
5d284218f7
commit
f7dcf020fb
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue