Skip to content

Commit

Permalink
Only try to assign the tool images if the Dev Env is available from a…
Browse files Browse the repository at this point in the history
… catalog.
  • Loading branch information
janosmurai committed Mar 28, 2024
1 parent ca521e6 commit 0a8c840
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dem/cli/command/info_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def execute(platform: Platform, arg_dev_env_name: str) -> None:
for catalog in platform.dev_env_catalogs.catalogs:
catalog.request_dev_envs()
dev_env = catalog.get_dev_env_by_name(arg_dev_env_name)
dev_env.assign_tool_image_instances(platform.tool_images)
if dev_env:
dev_env.assign_tool_image_instances(platform.tool_images)
break

if dev_env is None:
Expand Down

0 comments on commit 0a8c840

Please sign in to comment.