Skip to content

Commit

Permalink
Fixed error messages in handler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Denish3436 committed Oct 15, 2024
1 parent b9e7586 commit b7d697c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit b7d697c

Please sign in to comment.