Skip to content

Commit a704367

Browse files
#CALM-28014 Fixing environment ref to pick correct environment
1 parent b90e676 commit a704367

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

calm/dsl/builtins/models/calm_ref.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,9 @@ def compile(cls, name, **kwargs):
188188

189189
project_cache_data = common_helper.get_cur_context_project()
190190
project_name = project_cache_data.get("name")
191+
project_uuid = project_cache_data.get("uuid")
191192
environment_cache_data = Cache.get_entity_data(
192-
entity_type="environment", name=name, project=project_name
193+
entity_type="environment", name=name, project_uuid=project_uuid
193194
)
194195
if not environment_cache_data:
195196
LOG.error(

0 commit comments

Comments
 (0)