From: Kefu Chai Date: Tue, 1 Sep 2020 10:26:15 +0000 (+0800) Subject: ceph_deploy: s/fedora/centos/ for openEuler support X-Git-Tag: v2.1.0~9^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=05a51a2087706e74551c20c2c6351cd8581dbd30;p=ceph-deploy.git ceph_deploy: s/fedora/centos/ for openEuler support as openEuler is based on CentOS Signed-off-by: Kefu Chai --- diff --git a/ceph_deploy/hosts/__init__.py b/ceph_deploy/hosts/__init__.py index 1b21d1d..7472d4f 100644 --- a/ceph_deploy/hosts/__init__.py +++ b/ceph_deploy/hosts/__init__.py @@ -97,7 +97,7 @@ def _get_distro(distro, fallback=None, use_rhceph=False): 'oracle': centos, 'redhat': centos, 'fedora': fedora, - 'openeuler':fedora, + 'openeuler': centos, 'suse': suse, 'virtuozzo': centos, 'arch': arch, diff --git a/ceph_deploy/tests/unit/hosts/test_hosts.py b/ceph_deploy/tests/unit/hosts/test_hosts.py index 3374d89..0e60be0 100644 --- a/ceph_deploy/tests/unit/hosts/test_hosts.py +++ b/ceph_deploy/tests/unit/hosts/test_hosts.py @@ -434,4 +434,4 @@ class TestGetDistro(object): def test_get_openeulerlinux(self): result = hosts._get_distro('Openeuler') - assert result.__name__.endswith('fedora') + assert result.__name__.endswith('centos')