Skip to content

Commit

Permalink
Merge pull request #1296 from Subreptivus/kv_multiple_policies_fix
Browse files Browse the repository at this point in the history
KeyVault multiple policies ObjectID fix
  • Loading branch information
theunrepentantgeek authored Oct 19, 2020
2 parents 6f8beca + 9fe4f23 commit 0f9b5ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/resourcemanager/keyvaults/keyvault.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ func (k *azureKeyVaultManager) CreateVault(ctx context.Context, instance *v1alph
var accessPolicies []keyvault.AccessPolicyEntry
if instance.Spec.AccessPolicies != nil {
for _, policy := range *instance.Spec.AccessPolicies {
policy := policy // Make a copy of the variable and redeclare it
newEntry, err := ParseAccessPolicy(&policy, ctx)
if err != nil {
return keyvault.Vault{}, err
Expand Down

0 comments on commit 0f9b5ee

Please sign in to comment.