]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
ceph_deploy: s/fedora/centos/ for openEuler support
authorKefu Chai <kchai@redhat.com>
Tue, 1 Sep 2020 10:26:15 +0000 (18:26 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 1 Sep 2020 10:28:01 +0000 (18:28 +0800)
as openEuler is based on CentOS

Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph_deploy/hosts/__init__.py
ceph_deploy/tests/unit/hosts/test_hosts.py

index 1b21d1d793e17dd45e423d242b3e73a246b62fa7..7472d4f2a09e5fa492ef8de96bff90e9e343c2fc 100644 (file)
@@ -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,
index 3374d89516ec38713004e9131eac2135bc9e3804..0e60be0de14bc402085677d848fa0b478eb23272 100644 (file)
@@ -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')