]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
[RM-17287] hosts: detect systemd before sysvinit in centos 432/head
authorAlfredo Deza <adeza@redhat.com>
Mon, 6 Mar 2017 19:03:25 +0000 (14:03 -0500)
committerAlfredo Deza <adeza@redhat.com>
Mon, 6 Mar 2017 19:03:42 +0000 (14:03 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph_deploy/hosts/centos/__init__.py

index 3c03fda8eb04e1875812e3a5b4ad5f1f67331fda..daeae4c75b19d1609f12f14c170cc9b9ec8c6e97 100644 (file)
@@ -22,12 +22,12 @@ def choose_init(module):
     if module.normalized_release.int_major < 7:
         return 'sysvinit'
 
-    if not module.conn.remote_module.path_exists("/usr/lib/systemd/system/ceph.target"):
-        return 'sysvinit'
-
     if is_systemd(module.conn):
         return 'systemd'
 
+    if not module.conn.remote_module.path_exists("/usr/lib/systemd/system/ceph.target"):
+        return 'sysvinit'
+
     return 'systemd'
 
 def get_packager(module):