Fix ImportError in Centos CI

This fixes an import error with the newest devstack, which conflicts
with the system FreeIPA installation and results in:
ImportError: cannot import name decorate in dogpile.

Change-Id: I8bade87962f3adacbc26a666ea02fedb74963bfa
This commit is contained in:
Grzegorz Grasza 2018-12-13 13:45:19 +01:00
parent c75c4c05a1
commit 8aaf9007bb
1 changed files with 13 additions and 0 deletions

View File

@ -57,3 +57,16 @@
--forwarder={{ unbound_primary_nameserver_v4 | default('1.1.1.1') }}
--forwarder={{ unbound_secondary_nameserver_v4 | default('8.8.8.8') }}
become: true
- name: Remove system python-decorator package which conflicts with devstack
command: rpm -e --nodeps python-decorator-3.4.0-3.el7.noarch
become: true
ignore_errors: yes
when: python_version is not defined
- name: Install the latest decorator module for devstack
pip:
name: decorator
state: forcereinstall
become: true
when: python_version is not defined