From 1d4d51b218ed14b85d1e46d3e7142fb52ea179d5 Mon Sep 17 00:00:00 2001 From: Darrell Bishop Date: Fri, 28 Jun 2013 21:26:54 -0700 Subject: Allow storage url override for both auth vers. When --os-storage-url is specified on the command-line to bin/swift, it will override the used storage URL regardless of authentication for both authentication version 1 and version 2. This can be used to bypass a load-balancer to hit a specific proxy server for testing/debugging purposes. Within the client library, this feature is accessed by passing the desired storage URL into swiftclient.client.Conection.__init__() via the os_options keyword argument. For example: conn = Connection(auth_url, user, key, os_options={ 'object_storage_url': 'http://overridden.storage.url/AUTH_foo'}) This patch also adds a dependency on mock>=0.8.0, which is the same as openstack/swift. Change-Id: Id2a36ed6abffd65e7762b6beea5bbfc6c036e848 --- doc/manpages/swift.1 | 1 + 1 file changed, 1 insertion(+) (limited to 'doc/manpages/swift.1') diff --git a/doc/manpages/swift.1 b/doc/manpages/swift.1 index 0fafbe7..8775eff 100644 --- a/doc/manpages/swift.1 +++ b/doc/manpages/swift.1 @@ -105,6 +105,7 @@ will be deleted as well, unless you specify the --leave-segments option. .IP "-U USER, --user=USER User name for obtaining an auth token" .IP "-V 1|2 Authentication protocol version" .IP "-K KEY, --key=KEY Key for obtaining an auth token" +.IP "--os-storage-url=URL Use this instead of URL returned from auth" .PD -- cgit v1.2.1