← Back to team overview

duplicity-team team mailing list archive

[Merge] lp:~arashad.ahamad/duplicity/duplicity into lp:duplicity/0.7-series

 

Arashad Ahamad has proposed merging lp:~arashad.ahamad/duplicity/duplicity into lp:duplicity/0.7-series.

Requested reviews:
  duplicity-team (duplicity-team)

For more details, see:
https://code.launchpad.net/~arashad.ahamad/duplicity/duplicity/+merge/302761

Hello,

      These changes are for connecting to IBM Bluemix ObjectStorage. So by using these changes any user will be able to use IBM Bluemix ObjectStorage. Actually we have plan to use duplicity but we see that duplicity does not support IBM Bluemix ObjectStorage thats why we added this support in duplicity.


Regards
Arashad Ahamad
IBM Software Lab
-- 
Your team duplicity-team is requested to review the proposed merge of lp:~arashad.ahamad/duplicity/duplicity into lp:duplicity/0.7-series.
=== modified file 'duplicity/backends/swiftbackend.py'
--- duplicity/backends/swiftbackend.py	2016-05-30 13:29:33 +0000
+++ duplicity/backends/swiftbackend.py	2016-08-12 05:11:45 +0000
@@ -80,6 +80,12 @@
                     os_options.update({'tenant_name': os.environ['SWIFT_TENANTNAME']})
                 if 'SWIFT_ENDPOINT_TYPE' in os.environ:
                     os_options.update({'endpoint_type': os.environ['SWIFT_ENDPOINT_TYPE']})
+                if 'SWIFT_USERID' in os.environ:
+                    os_options.update({'user_id': os.environ['SWIFT_USERID']})
+                if 'SWIFT_TENANTID' in os.environ:
+                    os_options.update({'tenant_id': os.environ['SWIFT_TENANTID']})
+                if 'SWIFT_REGIONNAME' in os.environ:
+                    os_options.update({'region_name': os.environ['SWIFT_REGIONNAME']})
 
         else:
             conn_kwargs['auth_version'] = '1'


Follow ups