From 6f8d70e2b59d59fdb89837df65bebf901751c386 Mon Sep 17 00:00:00 2001 From: Jongmin Kim Date: Fri, 3 Nov 2023 21:58:53 +0900 Subject: [PATCH] refactor: change response model in plugin --- .../plugin/data_source/model/data_source_response.py | 2 +- .../cost_analysis/plugin/data_source/model/job_response.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spaceone/cost_analysis/plugin/data_source/model/data_source_response.py b/src/spaceone/cost_analysis/plugin/data_source/model/data_source_response.py index 412935d2..651da8cb 100644 --- a/src/spaceone/cost_analysis/plugin/data_source/model/data_source_response.py +++ b/src/spaceone/cost_analysis/plugin/data_source/model/data_source_response.py @@ -53,7 +53,7 @@ class SupportedSecretType(str, Enum): class PluginMetadata(BaseModel): - data_source_rules: List[DataSourceRule] + data_source_rules: List[DataSourceRule] = [] supported_secret_types: List[SupportedSecretType] = [SupportedSecretType.manual] currency: str = 'USD' diff --git a/src/spaceone/cost_analysis/plugin/data_source/model/job_response.py b/src/spaceone/cost_analysis/plugin/data_source/model/job_response.py index 0dec3c7e..4c402102 100644 --- a/src/spaceone/cost_analysis/plugin/data_source/model/job_response.py +++ b/src/spaceone/cost_analysis/plugin/data_source/model/job_response.py @@ -15,4 +15,4 @@ class Changed(BaseModel): class TasksResponse(BaseModel): tasks: List[Task] - changed: List[Changed] + changed: List[Changed] = []