From c24e6df18e81b14d6cb035df3d9c21cfa2a79f8e Mon Sep 17 00:00:00 2001 From: GomathiselviS Date: Tue, 16 Jan 2024 14:48:37 -0500 Subject: [PATCH] linters fix --- internal/provider/job_resource_test.go | 2 +- internal/provider/utils.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/provider/job_resource_test.go b/internal/provider/job_resource_test.go index 75eb8a9..cba2c72 100644 --- a/internal/provider/job_resource_test.go +++ b/internal/provider/job_resource_test.go @@ -45,7 +45,7 @@ func TestParseHttpResponse(t *testing.T) { { name: "ignored fields", failure: false, - body: []byte(`{"job_type": "run", "url": "/api/v2/jobs/14/", "status": + body: []byte(`{"job_type": "run", "url": "/api/v2/jobs/14/", "status": "pending", "ignored_fields": {"extra_vars": "{\"bucket_state\":\"absent\"}"}}`), expected: jobResourceModel{ TemplateID: templateID, diff --git a/internal/provider/utils.go b/internal/provider/utils.go index 3d9c9dd..4562c9e 100644 --- a/internal/provider/utils.go +++ b/internal/provider/utils.go @@ -1,9 +1,9 @@ package provider import ( - "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/attr" ) func IsValueProvided(value attr.Value) bool { - return !value.IsNull() && !value.IsUnknown() + return !value.IsNull() && !value.IsUnknown() }