Skip to content

Commit 42a0974

Browse files
committed
fixing, pass in client
1 parent f36a707 commit 42a0974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyclowder/api/v2/files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def upload_to_dataset(connector, client, datasetid, filepath, check_duplicate=Fa
268268
logger = logging.getLogger(__name__)
269269

270270
if check_duplicate:
271-
ds_files = get_file_list(connector, client.host, client.key, datasetid)
271+
ds_files = get_file_list(connector, client, datasetid)
272272
for f in ds_files:
273273
if f['filename'] == os.path.basename(filepath):
274274
logger.debug("found %s in dataset %s; not re-uploading" % (f['filename'], datasetid))

0 commit comments

Comments
 (0)