Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
update servicenow url key
Browse files Browse the repository at this point in the history
  • Loading branch information
luisr-escobar committed Aug 10, 2021
1 parent b8d4b88 commit 004dcfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/credentials/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
}

Expand Down

0 comments on commit 004dcfc

Please sign in to comment.