Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Add support for CentOS8
Browse files Browse the repository at this point in the history
Just add centos8 in the list of supported OSes, and also refactor a bit
the condition to avoid useless elif.

Change-Id: I83c9dc1372cc8fc13bf9935a29d33180e27e6fda
  • Loading branch information
EmilienM committed Sep 24, 2019
1 parent 1cf6e0b commit 99d252e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tripleo_repos/main.py
Expand Up @@ -59,6 +59,7 @@
# unversioned fedora added for backwards compatibility
SUPPORTED_DISTROS = [
('centos', '7'),
('centos', '8'),
('fedora', '28'),
('fedora', ''),
('rhel', '8')
Expand Down Expand Up @@ -184,10 +185,7 @@ def _validate_distro_repos(args):
if 'fedora' in args.distro:
valid_repos = ['current', 'current-tripleo', 'ceph', 'deps',
'tripleo-ci-testing']
elif args.distro in ['centos7']:
valid_repos = ['ceph', 'current', 'current-tripleo',
'current-tripleo-dev', 'deps', 'tripleo-ci-testing']
elif args.distro in ['rhel8']:
elif args.distro in ['centos7', 'centos8', 'rhel8']:
valid_repos = ['ceph', 'current', 'current-tripleo',
'current-tripleo-dev', 'deps', 'tripleo-ci-testing']
invalid_repos = [x for x in args.repos if x not in valid_repos]
Expand Down

0 comments on commit 99d252e

Please sign in to comment.