SwiftService ctor does not allow passing a Session object
Bug #1843904 reported by
Andrew Berezovskiy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-swiftclient |
New
|
Undecided
|
Unassigned |
Bug Description
In order to use SwiftService with an alternative auth mechanism (v3applicationc
To post a comment you must log in.
This is how I patched the SwiftService for the time being:
class SwiftConnection Service( SwiftService) :
SwiftService. __init_ _(self, options=options) connection( ):
self.thread_ manager. __exit_ _(None, None, None)
self.thread_ manager = MultiThreadingM anager(
create_ connection,
segment_ threads= self._options[ 'segment_ threads' ],
object_ dd_threads= self._options[ 'object_ dd_threads' ],
object_ uu_threads= self._options[ 'object_ uu_threads' ],
container_ threads= self._options[ 'container_ threads' ]
def __init__(self, connection, options=None):
"""
Override the manager before it's used
"""
def create_
return connection
# clean up the resources
)