Skip to content

Commit

Permalink
fix(vm): do not check keys for sysprep secret (#186)
Browse files Browse the repository at this point in the history
fix

Signed-off-by: yaroslavborbat <[email protected]>
  • Loading branch information
yaroslavborbat authored Jul 4, 2024
1 parent 0768d1e commit 30c46c5
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,7 @@ func (h *ProvisioningHandler) genConditionFromSecret(ctx context.Context, builde
Message(fmt.Sprintf("Secret %q not found.", secretKey.String()))
return nil
}
validate := false
if len(checkKeys) == 0 {
validate = true
}
validate := true
for _, key := range checkKeys {
if _, ok := secret.Data[key]; !ok {
validate = false
Expand Down

0 comments on commit 30c46c5

Please sign in to comment.