Skip to content

Commit e4ca2f7

Browse files
committed
fix for recent recipe api changes [ch48657]
1 parent 70e6444 commit e4ca2f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dataikuapi/dss/flow.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def replace_input_computable(self, current_ref, new_ref, type="DATASET"):
4141
settings.save()
4242

4343
for recipe in self.project.list_recipes():
44-
fake_rap = DSSRecipeDefinitionAndPayload({"recipe" : recipe})
44+
recipe_handle = self.project.get_recipe(recipe["name"])
45+
fake_rap = DSSRecipeDefinitionAndPayload(recipe_handle, {"recipe" : recipe})
4546
if fake_rap.has_input(current_ref):
4647
logging.info("Recipe %s has %s as input, performing the replacement by %s"% \
4748
(recipe["name"], current_ref, new_ref))

0 commit comments

Comments
 (0)