Missing SWIFT_ENDPOINT_TYPE env var

Bug #1519694 reported by Cyril Feraudet on 2015-11-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
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'

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  Edit
Everyone can see this information.

Other bug subscribers