Skip to content

Commit

Permalink
fix policy unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
davemooreuws committed Feb 26, 2025
1 parent 65d3231 commit 0cd66fd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cloud/azure/deploy/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
//#nosec G501 -- md5 used only to produce a unique ID from non-sensistive information (policy IDs)

"fmt"
"strings"

"github.com/pulumi/pulumi-azure-native-sdk/authorization"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
Expand Down Expand Up @@ -72,13 +71,11 @@ func (p *NitricAzurePulumiProvider) scopeFromResource(resource *deploymentspb.Re
),
}, nil
case resourcespb.ResourceType_KeyValueStore:
_, ok := p.KeyValueStores[resource.Id.Name]
kv, ok := p.KeyValueStores[resource.Id.Name]
if !ok {
return nil, fmt.Errorf("key value store %s not found", resource.Id.Name)
}

normalizedName := strings.ReplaceAll(resource.Id.Name, "-", "")

return &resourceScope{
scope: pulumi.Sprintf(
"subscriptions/%s/resourceGroups/%s/providers/Microsoft.Storage/storageAccounts/%s/tableServices/default/tables/%s",
Expand Down

0 comments on commit 0cd66fd

Please sign in to comment.