From 004dcfc68f1ea1c905b804566c9a818ebb279878 Mon Sep 17 00:00:00 2001 From: luisescobar89 Date: Tue, 10 Aug 2021 15:17:30 -0400 Subject: [PATCH] update servicenow url key --- pkg/credentials/credentials.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/credentials/credentials.go b/pkg/credentials/credentials.go index 11a6d3a..1d1a0a1 100644 --- a/pkg/credentials/credentials.go +++ b/pkg/credentials/credentials.go @@ -40,7 +40,7 @@ func GetServicenowCredentials() (*servicenowCredentials, error) { return nil, err } - if string(secret.Data["SERVICENOW_INSTANCE"]) == "" || string(secret.Data["SERVICENOW_USER"]) == "" || string(secret.Data["SERVICENOW_PASSWORD"]) == "" { + if string(secret.Data["SERVICENOW_INSTANCE_URL"]) == "" || string(secret.Data["SERVICENOW_USER"]) == "" || string(secret.Data["SERVICENOW_PASSWORD"]) == "" { return nil, errors.New("invalid or no ServiceNow credentials found. Requires at least SERVICENOW_INSTANCE_URL, SERVICENOW_USER and SERVICENOW_PASSWORD in secret!") }