From f29d03e409be1f7e92793221ae1efa33d50dd65d Mon Sep 17 00:00:00 2001 From: Daniel Nemergut <dnemergu@nrao.edu> Date: Thu, 11 Jul 2024 16:45:40 -0400 Subject: [PATCH] Only setting casa_recipe and casa_home if an actual recipe was returned --- .../workspaces/capability/services/capability_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/workspaces/workspaces/capability/services/capability_info.py b/shared/workspaces/workspaces/capability/services/capability_info.py index 322fa729b..4161abf1c 100644 --- a/shared/workspaces/workspaces/capability/services/capability_info.py +++ b/shared/workspaces/workspaces/capability/services/capability_info.py @@ -272,7 +272,7 @@ class CapabilityInfo: arguments["telescope"] if "telescope" in arguments else None, arguments["casa_home"] if "casa_home" in arguments else None, ) - if recipe: + if recipe and "recipe" in recipe["recipe"] and recipe["recipe"]: # The recipe contains both the recipe and the CASA path to it arguments["casa_home"] = recipe["path"] arguments["casa_recipe"] = recipe["recipe"] -- GitLab