dataiku-api-client-python icon indicating copy to clipboard operation
dataiku-api-client-python copied to clipboard

dataikuapi/dss/recipe.py : set_code_env fix

Open stevenseveur opened this issue 5 years ago • 0 comments

Hi,

I don't know if the the post I've made on the Community forum has been reviewed yet. I haven't seen a commit on it (not in the "master" nor the "dss80-set-code-env-mode") so I post an issue here.

The function set_code_env (from the class CodeRecipeSettings) doesn't set the code env but a string :

if code_env is not None: rp["envSelection"] = {"envMode": "EXPLICIT_ENV", "envName": "code_env"}

Should be :

if code_env is not None: rp["envSelection"] = {"envMode": "EXPLICIT_ENV", "envName": code_env}

Hoping I won't trouble your workspace.

Greetings, Steven

stevenseveur avatar Dec 09 '20 14:12 stevenseveur