]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
DaemonGroup: Simplify setting self.use_init
authorZack Cerza <zack@redhat.com>
Thu, 13 Apr 2017 22:11:28 +0000 (16:11 -0600)
committerZack Cerza <zack@redhat.com>
Thu, 21 Sep 2017 18:49:10 +0000 (12:49 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/orchestra/daemon.py

index 5cb0cf60f2077407ee59c1e41d21efc4ea5844d5..ba7368119c50741802fb68c94016df4648c6ffab 100644 (file)
@@ -267,10 +267,7 @@ class DaemonGroup(object):
         dictionary of DaemonState values indexed by an id parameter.
         """
         self.daemons = {}
-        self.use_init = False
-        if use_init:
-            # will use the systemd init instead of old sytle daemons
-            self.use_init = True
+        self.use_init = use_init
 
     def add_daemon(self, remote, type_, id_, *args, **kwargs):
         """