Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Error messages in handler.py #197

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/tirith/providers/terraform_plan/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def provider_config_operator(input_data: dict, provider_inputs: dict, outputs: l
outputs.append(
{
"value": ProviderError(severity_value=99),
"err": "`terraform_provider_full_name` must be provided in the provider input (severity_value: 99))",
"err": "`terraform_provider_full_name` must be provided in the provider input (severity_value: 99)",
}
)
return
Expand Down Expand Up @@ -274,7 +274,7 @@ def direct_dependencies_operator(input_data: dict, provider_inputs: dict, output
outputs.append(
{
"value": ProviderError(severity_value=99),
"err": "`terraform_resource_type` must be provided in the provider input (severity_value: 99))",
"err": "`terraform_resource_type` must be provided in the provider input (severity_value: 99)",
}
)
return
Expand Down Expand Up @@ -453,7 +453,7 @@ def direct_references_operator(input_data: dict, provider_inputs: dict, outputs:
outputs.append(
{
"value": ProviderError(severity_value=99),
"err": "Only one of `referenced_by` or `references_to` must be provided in the provider input (severity_value: 99))",
"err": "Only one of `referenced_by` or `references_to` must be provided in the provider input (severity_value: 99)",
}
)
return
Expand All @@ -471,7 +471,7 @@ def direct_references_operator(input_data: dict, provider_inputs: dict, outputs:
outputs.append(
{
"value": ProviderError(severity_value=99),
"err": "`terraform_resource_type` must be provided in the provider input (severity_value: 99))",
"err": "`terraform_resource_type` must be provided in the provider input (severity_value: 99)",
}
)
return
Expand Down
2 changes: 1 addition & 1 deletion tests/providers/terraform_plan/test_direct_references.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test_direct_references_to_and_by_should_raise_error():
"Only one of `referenced_by` or "
"`references_to` must be provided in "
"the provider input (severity_value: "
"99))"
"99)"
)


Expand Down
Loading