From 1b80a2a80e72b0130338f5c9c4f3320ff923a127 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 13 Nov 2019 14:31:41 +0000 Subject: [PATCH] orchestra/daemon/group: simpler syntax Signed-off-by: Sage Weil --- teuthology/orchestra/daemon/group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/orchestra/daemon/group.py b/teuthology/orchestra/daemon/group.py index cbeb3cc4f..1ff295533 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 -- 2.47.3