duplicity-team team mailing list archive
-
duplicity-team team
-
Mailing list archive
-
Message #02709
[Merge] lp:~vincegt/duplicity/swift_regionname into lp:duplicity
Vincent Cassé has proposed merging lp:~vincegt/duplicity/swift_regionname into lp:duplicity.
Requested reviews:
duplicity-team (duplicity-team)
Related bugs:
Bug #1376628 in Duplicity: "support for openstack swift regions"
https://bugs.launchpad.net/duplicity/+bug/1376628
For more details, see:
https://code.launchpad.net/~vincegt/duplicity/swift_regionname/+merge/246165
Add mapping of SWIFT_REGIONNAME to select region inside SWIFT when a provider propose more than one region.
This branch changes only swift backend.
--
Your team duplicity-team is requested to review the proposed merge of lp:~vincegt/duplicity/swift_regionname into lp:duplicity.
=== modified file 'duplicity/backends/swiftbackend.py'
--- duplicity/backends/swiftbackend.py 2014-10-27 02:27:36 +0000
+++ duplicity/backends/swiftbackend.py 2015-01-12 14:34:14 +0000
@@ -69,6 +69,8 @@
conn_kwargs['auth_version'] = '1'
if 'SWIFT_TENANTNAME' in os.environ:
conn_kwargs['tenant_name'] = os.environ['SWIFT_TENANTNAME']
+ if 'SWIFT_REGIONNAME' in os.environ:
+ conn_kwargs['os_options'] = {'region_name':os.environ['SWIFT_REGIONNAME']}
self.container = parsed_url.path.lstrip('/')
Follow ups