From fd294dfcdd15f9c11c604dcbcbb23b0b5a31f67a Mon Sep 17 00:00:00 2001 From: pataya23 <45467019+pataya23@users.noreply.github.com> Date: Mon, 13 Apr 2020 13:19:03 +0200 Subject: [PATCH] added 'webdav_root' option otherwise I get an error (webdav3.exceptions.RemoteResourceNotFound: Remote resource: not found) --- cookbook/provider/nextcloud.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cookbook/provider/nextcloud.py b/cookbook/provider/nextcloud.py index 705c7280..f06e503d 100644 --- a/cookbook/provider/nextcloud.py +++ b/cookbook/provider/nextcloud.py @@ -16,9 +16,10 @@ class Nextcloud(Provider): @staticmethod def get_client(storage): options = { - 'webdav_hostname': storage.url + '/remote.php/dav/files/' + storage.username, + 'webdav_hostname': storage.url, 'webdav_login': storage.username, - 'webdav_password': storage.password + 'webdav_password': storage.password, + 'webdav_root': '/remote.php/dav/files/' + storage.username } return wc.Client(options)