From: HacKan Date: Sun, 1 Apr 2018 02:43:23 +0000 (-0300) Subject: [RM-23534] Fix distro detection for Arch Linux X-Git-Tag: v2.0.1~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0d0fa16ed55644a65a1e0c68ce3f2a684802d48d;p=ceph-deploy.git [RM-23534] Fix distro detection for Arch Linux --- diff --git a/ceph_deploy/hosts/remotes.py b/ceph_deploy/hosts/remotes.py index fec1da0..44fd3ee 100644 --- a/ceph_deploy/hosts/remotes.py +++ b/ceph_deploy/hosts/remotes.py @@ -36,10 +36,12 @@ def platform_information(_linux_distribution=None): codename = minor else: codename = major - if not codename and 'oracle' in distro.lower(): # this could be an empty string in Oracle linux + if not codename and 'oracle' in distro.lower(): # this could be an empty string in Oracle linux codename = 'oracle' - if not codename and 'virtuozzo linux' in distro.lower(): # this could be an empty string in Virtuozzo linux + if not codename and 'virtuozzo linux' in distro.lower(): # this could be an empty string in Virtuozzo linux codename = 'virtuozzo' + if not codename and 'arch' in distro.lower(): # this could be an empty string in Arch linux + codename = 'arch' return ( str(distro).rstrip(),