Fix centos qdrouterd for centos > 7

Yum doesn't present in centos/rhel version 8, we'll need to
use dnf in that case.

Change-Id: I2ccbfe4ae55c6a3653d8c03a12e6bca64e58d396
Closes-Bug: #1851135
This commit is contained in:
Sagi Shnaidman 2019-11-04 12:35:46 +02:00
parent 3ef9bf828e
commit 31a061099b
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
] %}
# make sure qpid is pulled from centos-openstack-RELEASE (RDO) repo
RUN yum-config-manager --disable epel centos-release-opstools extras
RUN {% if distro_package_manager == 'dnf' %}dnf config-manager{% else %}yum-config-manager{% endif %} --disable epel centos-release-opstools extras
{{ macros.install_packages(qdrouterd_packages | customizable("packages")) }}