Skip to content

Commit c80be26

Browse files
committed
coherence with the backend
1 parent a4ef05f commit c80be26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dataikuapi/dss/scenario.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def get_definition(self, with_status=True):
6969
actions' definition. If False, the definition doesn't contain the run status
7070
but has the scenario's actions definition
7171
"""
72-
suffix = '/no-params' if with_status else ''
72+
suffix = '/light' if with_status else ''
7373
return self.client._perform_json(
7474
"GET", "/projects/%s/scenarios/%s%s" % (self.project_key, self.id, suffix))
7575

@@ -81,7 +81,7 @@ def set_definition(self, definition, with_status=True):
8181
with_status: should be the same as the value passed to get_definition(). If True, the params,
8282
triggers and reporters fields of the scenario are ignored,
8383
"""
84-
suffix = '/no-params' if with_status else ''
84+
suffix = '/light' if with_status else ''
8585
return self.client._perform_json(
8686
"PUT", "/projects/%s/scenarios/%s%s" % (self.project_key, self.id, suffix), body = definition)
8787

0 commit comments

Comments
 (0)