From 0d0fa16ed55644a65a1e0c68ce3f2a684802d48d Mon Sep 17 00:00:00 2001 From: HacKan Date: Sat, 31 Mar 2018 23:43:23 -0300 Subject: [PATCH] [RM-23534] Fix distro detection for Arch Linux --- ceph_deploy/hosts/remotes.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(), -- 2.47.3