From 1e9608f21638ff84615c9f380b42a62c0784b752 Mon Sep 17 00:00:00 2001 From: Maniraja Date: Sat, 1 Jul 2023 01:37:05 -0400 Subject: [PATCH] Update incorrect environment variable for Kaggle key --- plugins/kaggle/api_token.go | 2 +- plugins/kaggle/api_token_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/kaggle/api_token.go b/plugins/kaggle/api_token.go index 5b047a6e9..81b6b0ad8 100644 --- a/plugins/kaggle/api_token.go +++ b/plugins/kaggle/api_token.go @@ -46,6 +46,6 @@ func APIToken() schema.CredentialType { } var defaultEnvVarMapping = map[string]sdk.FieldName{ - "KAGGLE_TOKEN": fieldname.Token, + "KAGGLE_KEY": fieldname.Token, "KAGGLE_USERNAME": fieldname.Username, } diff --git a/plugins/kaggle/api_token_test.go b/plugins/kaggle/api_token_test.go index 39f7d2861..89ff819e2 100644 --- a/plugins/kaggle/api_token_test.go +++ b/plugins/kaggle/api_token_test.go @@ -17,7 +17,7 @@ func TestAPITokenProvisioner(t *testing.T) { }, ExpectedOutput: sdk.ProvisionOutput{ Environment: map[string]string{ - "KAGGLE_TOKEN": "z2pifkruzgbb17plmz2gux21fexample", + "KAGGLE_KEY": "z2pifkruzgbb17plmz2gux21fexample", "KAGGLE_USERNAME": "username", }, },