Missing SWIFT_ENDPOINT_TYPE env var

Bug #1519694 reported by Cyril Feraudet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
Medium
Unassigned

Bug Description

Hi all,

Something like SWIFT_ENDPOINT_TYPE is missing in backends/swiftbackend.py to specify endpoint type.

Here a short patch :

$ diff /usr/lib/python2.7/dist-packages/duplicity/backends/swiftbackend.py swiftbackend.py.new
80a81,82
> if 'SWIFT_ENDPOINT_TYPE' in os.environ:
> os_options.update({'endpoint_type': os.environ['SWIFT_ENDPOINT_TYPE']})
cferaudet@feraudet:~$ diff -u /usr/lib/python2.7/dist-packages/duplicity/backends/swiftbackend.py swiftbackend.py.new
--- /usr/lib/python2.7/dist-packages/duplicity/backends/swiftbackend.py 2015-09-15 16:32:51.000000000 +0200
+++ swiftbackend.py.new 2015-11-25 09:39:34.795535424 +0100
@@ -78,6 +78,8 @@
                     os_options.update({'project_domain_id': os.environ['SWIFT_PROJECT_DOMAIN_ID']})
                 if 'SWIFT_TENANTNAME' in os.environ:
                     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']})

         else:
             conn_kwargs['auth_version'] = '1'

Revision history for this message
Cyril Feraudet (feraudet) wrote :

Patch pushed in lp:~feraudet/duplicity/fix

Not sure it the way to submit something to duplicity project ...

Changed in duplicity:
importance: Undecided → Medium
milestone: none → 0.7.06
status: New → Fix Committed
Changed in duplicity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.