Skip to content

Commit bbce01a

Browse files
committed
Fixed wrong reference to config file
1 parent edeedf8 commit bbce01a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/config/profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (p *Profile) GetAPIKey() (string, error) {
9292

9393
// Try to fetch the API key from the configuration file
9494
if err := viper.ReadInConfig(); err == nil {
95-
key := viper.GetString(p.GetConfigField("cli_key"))
95+
key := viper.GetString(p.GetConfigField("api_key"))
9696

9797
err := validators.APIKey(key)
9898
if err != nil {

0 commit comments

Comments
 (0)