]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fix nested generator use
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 11 Feb 2020 21:37:53 +0000 (13:37 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 13 Feb 2020 15:51:09 +0000 (07:51 -0800)
Apparently Python doesn't allow nested generator calls. Hurray.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/cephfs/filesystem.py

index 02c07a42e07a77be09530f5a2d7dc50b5df255e9..be802a4ffe11ced9c6258c92630ed1992a96cfc8 100644 (file)
@@ -86,7 +86,7 @@ class FSStatus(object):
         """
         Iterator for all the mds_info components in the FSMap.
         """
-        for info in self.get_standbys():
+        for info in self.map['standbys']:
             yield info
         for fs in self.map['filesystems']:
             for info in fs['mdsmap']['info'].values():