From: Casey Bodley Date: Thu, 27 Apr 2017 18:29:08 +0000 (-0400) Subject: qa/rgw: fix assertions in radosgw_admin task X-Git-Tag: v12.0.3~178^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F14842%2Fhead;p=ceph.git qa/rgw: fix assertions in radosgw_admin task Signed-off-by: Casey Bodley --- diff --git a/qa/tasks/radosgw_admin.py b/qa/tasks/radosgw_admin.py index a08a5ddd44dc..033d4d298201 100644 --- a/qa/tasks/radosgw_admin.py +++ b/qa/tasks/radosgw_admin.py @@ -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)