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() }