]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-detect-init/debian/__init__: improved syntax 4731/head
authorMichal Jarzabek <stiopa@gmail.com>
Wed, 20 May 2015 21:20:38 +0000 (22:20 +0100)
committerMichal Jarzabek <stiopa@gmail.com>
Wed, 20 May 2015 21:20:38 +0000 (22:20 +0100)
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
src/ceph-detect-init/ceph_detect_init/debian/__init__.py

index 7518562e2f31c10682684a667046e8112b5b387a..7209ff6ba192a2ad85b85ce748a4ec9b36d0a942 100644 (file)
@@ -8,6 +8,6 @@ def choose_init():
 
     Returns the name of a init system (upstart, sysvinit ...).
     """
-    if distro.lower() == 'ubuntu' or distro.lower() == 'linuxmint':
+    if distro.lower() in ('ubuntu', 'linuxmint'):
         return 'upstart'
     return 'sysvinit'