Skip to content

Commit 6d0a61f

Browse files
committed
Update zone with content of add_item
[ch51916]
1 parent eb10a36 commit 6d0a61f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dataikuapi/dss/flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def add_item(self, obj):
228228
:param object obj: A :class:`dataikuapi.dss.dataset.DSSDataset`, :class:`dataikuapi.dss.managedfolder.DSSManagedFolder`,
229229
or :class:`dataikuapi.dss.savedmodel.DSSSavedModel` to add to the zone
230230
"""
231-
self.client._perform_empty("POST", "/projects/%s/flow/zones/%s/items" % (self.flow.project.project_key, self.id),
231+
self._raw = self.client._perform_json("POST", "/projects/%s/flow/zones/%s/items" % (self.flow.project.project_key, self.id),
232232
body=self.flow._to_smart_ref(obj))
233233

234234
#. TBD: if we make "add to default" work propertly, then we don't need thjis

0 commit comments

Comments
 (0)