]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/commitdiff
just re-raise AgentErrors when getting the region map
authorAlfredo Deza <adeza@redhat.com>
Fri, 6 Mar 2015 15:33:10 +0000 (10:33 -0500)
committerAlfredo Deza <adeza@redhat.com>
Fri, 6 Mar 2015 15:33:10 +0000 (10:33 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
radosgw_agent/cli.py

index ff70006d87f0199b535af0e7e1bd0ebb385b2a85..263ffddec0976ea621f9d9741289924ec3ff7e3c 100644 (file)
@@ -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)