]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "check for inconsistent objects count instead of all keys"
authorDavid Zafman <dzafman@redhat.com>
Tue, 1 Nov 2016 18:00:16 +0000 (11:00 -0700)
committerDavid Zafman <dzafman@redhat.com>
Tue, 1 Nov 2016 18:00:27 +0000 (11:00 -0700)
This reverts commit e94f3901928501586f44c35612bc8f2dc504f465.

Signed-off-by: David Zafman <dzafman@redhat.com>
tasks/scrub_test.py

index 5d6ae0c5204060fde0814ba97d63f1f79509bf76..f68cafc8ec5fc874805fea6a9e2d2c2934f20900 100644 (file)
@@ -325,10 +325,10 @@ def test_list_inconsistent_obj(ctx, manager, osd_remote, pg, acting, osd_id,
             with contextlib.closing(StringIO()) as out:
                 mon.run(args=cmd.split(), stdout=out)
                 objs = json.loads(out.getvalue())
-            assert len(objs['inconsistents']) == 1
+            assert len(objs) == 1
 
             checker = InconsistentObjChecker(osd_id, acting, obj_name)
-            inc_obj = objs['inconsistents'][0]
+            inc_obj = objs[0]
             log.info('inc = %r', inc_obj)
             checker.basic_checks(inc_obj)
             for check in checks: