Skip to content

Commit 4ab2bd3

Browse files
committed
Fixes
1 parent e675e91 commit 4ab2bd3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dataikuapi/dss/plugin.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ def get_raw(self):
2222
"""Returns the raw settings object"""
2323
return self.settings
2424

25+
def set_code_env(self, code_env_name):
26+
"""Sets the name of the code env to use for this plugin"""
27+
self.settings["codeEnvName"] = code_env_name
28+
2529
def save(self):
2630
"""Saves the settings to DSS"""
2731
self.client._perform_empty("POST", "/plugins/%s/settings" % (self.plugin_id), body=self.settings)
@@ -57,6 +61,7 @@ def create_code_env(self, python_interpreter=None, conda=False):
5761
:return: a :class:`dataikuapi.dssfuture.DSSFuture`
5862
"""
5963
ret = self.client._perform_json("POST", "/plugins/%s/code-env/actions/create" % (self.plugin_id), body={
64+
"deploymentMode" : "PLUGIN_MANAGED",
6065
"conda": conda,
6166
"pythonInterpreter": python_interpreter
6267
})

0 commit comments

Comments
 (0)