From 5eef345e2d908c546313bceaa7ce25e800ffa219 Mon Sep 17 00:00:00 2001 From: Denish Tomar <152975472+Denish3436@users.noreply.github.com> Date: Tue, 22 Oct 2024 14:10:58 +0530 Subject: [PATCH] Fixed error messages in handler.py (#197) --- src/tirith/providers/terraform_plan/handler.py | 8 ++++---- tests/providers/terraform_plan/test_direct_references.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tirith/providers/terraform_plan/handler.py b/src/tirith/providers/terraform_plan/handler.py index 3b7a316..4bedafb 100644 --- a/src/tirith/providers/terraform_plan/handler.py +++ b/src/tirith/providers/terraform_plan/handler.py @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/tests/providers/terraform_plan/test_direct_references.py b/tests/providers/terraform_plan/test_direct_references.py index 293d63a..81a1c3c 100644 --- a/tests/providers/terraform_plan/test_direct_references.py +++ b/tests/providers/terraform_plan/test_direct_references.py @@ -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)" )