From 792e845f15d9ce7841857d4eaf883e82015eb78f Mon Sep 17 00:00:00 2001 From: ImMin5 Date: Fri, 4 Oct 2024 13:58:02 +0900 Subject: [PATCH] feat: modify filter temporary tags from azure contain '.' at key field Signed-off-by: ImMin5 --- src/cloudforet/cost_analysis/manager/cost_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cloudforet/cost_analysis/manager/cost_manager.py b/src/cloudforet/cost_analysis/manager/cost_manager.py index 48345bf..c468cd9 100644 --- a/src/cloudforet/cost_analysis/manager/cost_manager.py +++ b/src/cloudforet/cost_analysis/manager/cost_manager.py @@ -675,7 +675,7 @@ def _convert_tags_str_to_dict(tags_str: Union[str, None]) -> dict: tags_info: dict = json.loads(tags_str) for key in tags_info.keys(): - if "." not in key: + if len(key.split(".")) == 1: tags[key] = tags_info[key] return tags