We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1b4a68f + 03cc020 commit 805707bCopy full SHA for 805707b
src/cloudforet/cost_analysis/main.py
@@ -202,10 +202,8 @@ def __get_secret_data(secret_data: dict, task_options: dict) -> dict:
202
if len(secrets) == 1:
203
return secrets[0]
204
205
- billing_tenant_id = task_options["billing_tenant_id"]
206
-
207
for _secret_data in secrets:
208
- if _secret_data["tenant_id"] == billing_tenant_id:
+ if _secret_data["tenant_id"] == task_options.get("billing_tenant_id"):
209
return _secret_data
210
211
elif _secret_data.get("subscription_id") and _secret_data.get(
0 commit comments