]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/rgw: fix assertions in radosgw_admin task 14842/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 27 Apr 2017 18:29:08 +0000 (14:29 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 27 Apr 2017 23:38:10 +0000 (19:38 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
qa/tasks/radosgw_admin.py

index a08a5ddd44dcb4b9d81a4a57a6790231f9837258..033d4d29820140e28fccadff2047ca10c33fd8f3 100644 (file)
@@ -69,13 +69,13 @@ def task(ctx, config):
     global log
 
     # regions and config found from rgw task
-    assert ctx.rgw.regions
-        "tasks radosgw_admin needs region(s) declared from the rgw task"
+    assert ctx.rgw.regions is not None, \
+        "radosgw_admin task needs region(s) declared from the rgw task"
     regions = ctx.rgw.regions
     log.debug('regions are: %r', regions)
 
-    assert ctx.rgw.config
-        "tasks radosgw_admin needs a config passed from the rgw task"
+    assert ctx.rgw.config, \
+        "radosgw_admin task needs a config passed from the rgw task"
     config = ctx.rgw.config
     log.debug('config is: %r', config)