Skip to content

Commit

Permalink
Merge pull request #92 from whdalsrnt/master
Browse files Browse the repository at this point in the history
fix: add default currency when creating a budget
  • Loading branch information
whdalsrnt authored Sep 14, 2023
2 parents 475516a + 772cde0 commit f393563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spaceone/cost_analysis/service/budget_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def create(self, params):
data_source_mgr: DataSourceManager = self.locator.get_manager('DataSourceManager')
data_source_vo: DataSource = data_source_mgr.get_data_source(data_source_id, domain_id)
data_source_metadata = data_source_vo.plugin_info.metadata
params['currency'] = data_source_metadata['currency']
params['currency'] = data_source_metadata.get('currency', 'USD')

if time_unit == 'TOTAL':
if limit is None:
Expand Down

0 comments on commit f393563

Please sign in to comment.