From e5318219ff90f60d8b2962f420d60fc017f93de5 Mon Sep 17 00:00:00 2001 From: ImMin5 Date: Tue, 14 May 2024 18:27:03 +0900 Subject: [PATCH] feat: modify update data_source_account count field at DataSource(#199) --- .../cost_analysis/service/data_source_account_service.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/spaceone/cost_analysis/service/data_source_account_service.py b/src/spaceone/cost_analysis/service/data_source_account_service.py index 011645f7..5f28cb3a 100644 --- a/src/spaceone/cost_analysis/service/data_source_account_service.py +++ b/src/spaceone/cost_analysis/service/data_source_account_service.py @@ -78,10 +78,7 @@ def update( ) ) - if ( - params.workspace_id - and params.workspace_id != data_source_account_vo.workspace_id - ): + if params.workspace_id != data_source_account_vo.workspace_id: self.data_source_mgr.update_data_source_account_and_connected_workspace_count_by_vo( data_source_vo )