Skip to content

Commit

Permalink
KeyVault multiple policies ObjectID fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Subreptivus authored Oct 19, 2020
1 parent 6f8beca commit 9fe4f23
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 9fe4f23

Please sign in to comment.