From 9fe4f23fbbf1fde999a7a99e12b0dab0893cd028 Mon Sep 17 00:00:00 2001 From: Yurii Komar Date: Mon, 19 Oct 2020 11:54:42 +0300 Subject: [PATCH] KeyVault multiple policies ObjectID fix --- pkg/resourcemanager/keyvaults/keyvault.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/resourcemanager/keyvaults/keyvault.go b/pkg/resourcemanager/keyvaults/keyvault.go index 3477e8f054d..c370b3bab02 100644 --- a/pkg/resourcemanager/keyvaults/keyvault.go +++ b/pkg/resourcemanager/keyvaults/keyvault.go @@ -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