Fix wrong argument for resource creation.

Within the resource class its asumed that urn is a Urn instance and not
a str. Unwrapping the path here gives an exception at least in
write_to().

Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
This commit is contained in:
Jan Losinski 2018-03-14 16:55:46 +01:00
parent 133a5453cc
commit 772c6e561e

View file

@ -644,7 +644,7 @@ class Client(object):
def resource(self, remote_path):
urn = Urn(remote_path)
return Resource(self, urn.path())
return Resource(self, urn)
def push(self, remote_directory, local_directory):