From e41bc769500794d0d2acbf930fffe021a3588dbc Mon Sep 17 00:00:00 2001 From: Ringo De Smet Date: Mon, 28 Oct 2024 16:30:10 +0100 Subject: [PATCH] Linting fixes --- provider/cmd/pulumi-resource-unifi/main.go | 1 + provider/cmd/pulumi-tfgen-unifi/main.go | 1 + provider/resources.go | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/provider/cmd/pulumi-resource-unifi/main.go b/provider/cmd/pulumi-resource-unifi/main.go index 4173afa..b76cbc8 100644 --- a/provider/cmd/pulumi-resource-unifi/main.go +++ b/provider/cmd/pulumi-resource-unifi/main.go @@ -18,6 +18,7 @@ package main import ( "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge" + unifi "github.com/pulumiverse/pulumi-unifi/provider" "github.com/pulumiverse/pulumi-unifi/provider/pkg/version" ) diff --git a/provider/cmd/pulumi-tfgen-unifi/main.go b/provider/cmd/pulumi-tfgen-unifi/main.go index 1720789..2a0b6bd 100644 --- a/provider/cmd/pulumi-tfgen-unifi/main.go +++ b/provider/cmd/pulumi-tfgen-unifi/main.go @@ -16,6 +16,7 @@ package main import ( "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfgen" + unifi "github.com/pulumiverse/pulumi-unifi/provider" "github.com/pulumiverse/pulumi-unifi/provider/pkg/version" ) diff --git a/provider/resources.go b/provider/resources.go index 8b32b09..348e00d 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -21,11 +21,13 @@ import ( "unicode" provider "github.com/paultyng/terraform-provider-unifi/shim" + "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge" shim "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim" shimv2 "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2" "github.com/pulumi/pulumi/sdk/v3/go/common/resource" "github.com/pulumi/pulumi/sdk/v3/go/common/tokens" + "github.com/pulumiverse/pulumi-unifi/provider/pkg/version" ) @@ -82,7 +84,7 @@ func unifiResource(mod string, res string) tokens.Type { // It should validate that the provider can be configured, and provide actionable errors in the case // it cannot be. Configuration variables can be read from `vars` using the `stringValue` function - // for example `stringValue(vars, "accessKey")`. -func preConfigureCallback(vars resource.PropertyMap, c shim.ResourceConfig) error { +func preConfigureCallback(_ resource.PropertyMap, _ shim.ResourceConfig) error { return nil }