]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
orchestra/daemon/group: simpler syntax 1349/head
authorSage Weil <sage@redhat.com>
Wed, 13 Nov 2019 14:31:41 +0000 (14:31 +0000)
committerSage Weil <sage@redhat.com>
Wed, 13 Nov 2019 15:33:47 +0000 (15:33 +0000)
Signed-off-by: Sage Weil <sage@redhat.com>
teuthology/orchestra/daemon/group.py

index cbeb3cc4fbd76b924cefb9c40769e5149f6b5abc..1ff2955338bb58b68ab00db2b71ba54d3ee4c36a 100644 (file)
@@ -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