From: Sage Weil Date: Wed, 13 Nov 2019 14:31:41 +0000 (+0000) Subject: orchestra/daemon/group: simpler syntax X-Git-Tag: 1.1.0~195^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1349%2Fhead;p=teuthology.git orchestra/daemon/group: simpler syntax Signed-off-by: Sage Weil --- diff --git a/teuthology/orchestra/daemon/group.py b/teuthology/orchestra/daemon/group.py index cbeb3cc4..1ff29553 100644 --- a/teuthology/orchestra/daemon/group.py +++ b/teuthology/orchestra/daemon/group.py @@ -65,7 +65,7 @@ class DaemonGroup(object): klass = CephDaemonUnit kwargs['use_ceph_daemon'] = self.use_ceph_daemon elif self.use_systemd and \ - not any(map(lambda i: i == 'valgrind', args)) and \ + not any(i == 'valgrind' for i in args) and \ remote.init_system == 'systemd': # We currently cannot use systemd and valgrind together because # it would require rewriting the unit files