Skip to content

Commit 45e5805

Browse files
Update dataikuapi/dss/admin.py
Co-authored-by: Allan Francani <allan.francani@dataiku.com>
1 parent 140b057 commit 45e5805

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dataikuapi/dss/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ def get_version(self, version_id=None):
983983
raise Exception("A version id is required in a versioned code env. Existing ids: %s" % ', '.join(version_ids))
984984
for version in versions:
985985
if version_id == version.get("versionId"):
986-
return DSSAutomationCodeEnvVersionSettings(self, version)
986+
return DSSAutomationCodeEnvVersionSettings(self.codeenv, version)
987987
raise Exception("Version %s not found in : %s" % (version_id, ', '.join(version_ids)))
988988
elif deployment_mode in ['PLUGIN_NON_MANAGED', 'PLUGIN_MANAGED', 'AUTOMATION_NON_MANAGED_PATH', 'EXTERNAL_CONDA_NAMED']:
989989
return DSSAutomationCodeEnvVersionSettings(self.codeenv, self.settings.get('noVersion', {}))

0 commit comments

Comments
 (0)