Skip to content

Commit ceb44b8

Browse files
authored
fixes
1 parent ea83b1a commit ceb44b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ads/opctl/conda/cmds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ def _create(
146146
if not os.path.exists(env_file):
147147
raise FileNotFoundError(f"Environment file {env_file} is not found.")
148148

149+
conda_dep = None
149150
with open(env_file) as mfile:
150151
conda_dep = yaml.safe_load(mfile.read())
151152
# If manifest exists in the environment.yaml file, use that
@@ -193,7 +194,6 @@ def _create(
193194
manifest["manifest"]["manifest_version"] = "1.0"
194195

195196
logger.info(f"Creating conda environment {slug}")
196-
conda_dep = None
197197
conda_dep["manifest"] = manifest["manifest"]
198198

199199
if is_in_notebook_session() or NO_CONTAINER:

0 commit comments

Comments
 (0)