From: Joe Buck Date: Sat, 24 Aug 2013 02:25:26 +0000 (-0700) Subject: rgw: persist the region info X-Git-Tag: 1.1.0~1928 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=db518885c962c586d58cbb6bec17cef57e17c820;p=teuthology.git rgw: persist the region info The rgw task deletes the region info from the config structure. The s3tests task needs this info, so we persist it by sticking it in the ctx object. Signed-off-by: Joe Buck Reviewd-by: Josh Durgin --- diff --git a/teuthology/task/rgw.py b/teuthology/task/rgw.py index 8e8e0e265..82cac99fa 100644 --- a/teuthology/task/rgw.py +++ b/teuthology/task/rgw.py @@ -584,6 +584,8 @@ def task(ctx, config): role_endpoints = assign_ports(ctx, config) ctx.rgw = argparse.Namespace() ctx.rgw.role_endpoints = role_endpoints + # stash the region info for later, since it was deleted from the config structure + ctx.rgw.regions = regions with contextutil.nested( lambda: create_dirs(ctx=ctx, config=config),