Skip to content

Commit

Permalink
#CALM-28014 Fixing environment ref to pick correct environment
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijeetkaurav1st committed Oct 21, 2021
1 parent b90e676 commit a704367
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion calm/dsl/builtins/models/calm_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,9 @@ def compile(cls, name, **kwargs):

project_cache_data = common_helper.get_cur_context_project()
project_name = project_cache_data.get("name")
project_uuid = project_cache_data.get("uuid")
environment_cache_data = Cache.get_entity_data(
entity_type="environment", name=name, project=project_name
entity_type="environment", name=name, project_uuid=project_uuid
)
if not environment_cache_data:
LOG.error(
Expand Down

0 comments on commit a704367

Please sign in to comment.