duplicity-team team mailing list archive
-
duplicity-team team
-
Mailing list archive
-
Message #04373
[Merge] lp:~xlucas/duplicity/swift-multibackend-bug into lp:duplicity
Xavier Lucas has proposed merging lp:~xlucas/duplicity/swift-multibackend-bug into lp:duplicity.
Requested reviews:
duplicity (duplicity)
For more details, see:
https://code.launchpad.net/~xlucas/duplicity/swift-multibackend-bug/+merge/325374
The _list(self) method in multibackend loops through all stores, logging each store's parsed URL in the process.
However, as the swift backend doesn't construct this attribute in its __init__, using multibackend with a swift store ends up throwing an AttributeError.
--
Your team duplicity-team is subscribed to branch lp:duplicity.
=== modified file 'duplicity/backends/swiftbackend.py'
--- duplicity/backends/swiftbackend.py 2017-05-12 21:55:05 +0000
+++ duplicity/backends/swiftbackend.py 2017-06-09 10:31:20 +0000
@@ -32,6 +32,8 @@
Backend for Swift
"""
def __init__(self, parsed_url):
+ duplicity.backend.Backend.__init__(self, parsed_url)
+
try:
from swiftclient import Connection
from swiftclient import ClientException
Follow ups