From: Alfredo Deza Date: Fri, 6 Mar 2015 15:33:10 +0000 (-0500) Subject: just re-raise AgentErrors when getting the region map X-Git-Tag: v1.2.2~9^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5ddb04358979a12420756e87cc6a2e63412af542;p=radosgw-agent.git just re-raise AgentErrors when getting the region map Signed-off-by: Alfredo Deza --- diff --git a/radosgw_agent/cli.py b/radosgw_agent/cli.py index ff70006..263ffdd 100644 --- a/radosgw_agent/cli.py +++ b/radosgw_agent/cli.py @@ -283,7 +283,13 @@ def main(): try: region_map = client.get_region_map(dest_conn) + except AgentError: + # anything that we know about and are correctly raising should + # just get raised so that the decorator can handle it + raise except Exception as error: + # otherwise, we have the below exception that will nicely deal with + # explaining what happened raise RegionMapError(error) client.configure_endpoints(region_map, dest, src, args.metadata_only)