Skip to content

Commit 4eb7b83

Browse files
committed
fix api for bundles
1 parent 6a3dbec commit 4eb7b83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dataikuapi/dss/project.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from scenario import DSSScenario
77
from apiservice import DSSAPIService
88
import sys
9+
import os.path as osp
910
from .future import DSSFuture
1011

1112
class DSSProject(object):
@@ -373,7 +374,7 @@ def list_imported_bundles(self):
373374
"/projects/%s/bundles/imported" % self.project_key)
374375

375376
def import_bundle_from_archive(self, archive_path):
376-
return self.client._perform_json("POST",
377+
return self.client._perform_empty("POST",
377378
"/projects/%s/bundles/imported/actions/importFromArchive" % (self.project_key),
378379
params = { "archivePath" : osp.abspath(archive_path) })
379380

0 commit comments

Comments
 (0)