]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
[RM-23534] Fix distro detection for Arch Linux 471/head
authorHacKan <hackan@gmail.com>
Sun, 1 Apr 2018 02:43:23 +0000 (23:43 -0300)
committerHacKan <hackan@gmail.com>
Sun, 1 Apr 2018 02:43:23 +0000 (23:43 -0300)
ceph_deploy/hosts/remotes.py

index fec1da0d6031690396ef1ba43c4ea215dd6db6b9..44fd3eefef0f114a82d2582a355ef83247c78460 100644 (file)
@@ -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(),