From 76f917fa7c67cb6564043814f8b6f6dc72cd903c Mon Sep 17 00:00:00 2001 From: Jason Collins Date: Wed, 19 Oct 2022 13:49:59 -0700 Subject: [PATCH] APIGOV-23815 - update variable name --- pkg/agent/provisioning.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/agent/provisioning.go b/pkg/agent/provisioning.go index 68a609d50..63c150be8 100644 --- a/pkg/agent/provisioning.go +++ b/pkg/agent/provisioning.go @@ -386,7 +386,7 @@ func NewAPIKeyCredentialRequestBuilder(options ...func(*crdBuilderOptions)) prov // NewBasicAuthCredentialRequestBuilder - add basic auth base properties for provisioning schema func NewBasicAuthCredentialRequestBuilder(options ...func(*crdBuilderOptions)) provisioning.CredentialRequestBuilder { - apiKeyOptions := []func(*crdBuilderOptions){ + basicAuthOptions := []func(*crdBuilderOptions){ WithCRDName(provisioning.BasicAuthCRD), WithCRDTitle("Basic Auth"), WithCRDProvisionSchemaProperty( @@ -405,9 +405,9 @@ func NewBasicAuthCredentialRequestBuilder(options ...func(*crdBuilderOptions)) p IsEncrypted()), } - apiKeyOptions = append(apiKeyOptions, options...) + basicAuthOptions = append(basicAuthOptions, options...) - return NewCredentialRequestBuilder(apiKeyOptions...) + return NewCredentialRequestBuilder(basicAuthOptions...) } // NewOAuthCredentialRequestBuilder - add oauth base properties for provisioning schema