~aaron-whitehouse/duplicity/fix_patch_error

« back to all changes in this revision

Viewing changes to duplicity/backends/swiftbackend.py

* Merged in lp:~raymii/duplicity/fix-swiftbackend-max-10000-files-in-list
  - Swiftclient by default returns at max 10000 files. By adding 
    full_listing=True we make sure all objects are returned. 
    Ref: https://lists.nongnu.org/archive/html/duplicity-talk/2015-05/msg00060.html 
    and http://docs.openstack.org/developer/python-swiftclient/swiftclient.html#swiftclient.client.get_container

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
                f.write(chunk)
111
111
 
112
112
    def _list(self):
113
 
        headers, objs = self.conn.get_container(self.container)
 
113
        headers, objs = self.conn.get_container(self.container, full_listing=True)
114
114
        return [o['name'] for o in objs]
115
115
 
116
116
    def _delete(self, filename):