Skip to content

Commit 23fda4e

Browse files
authored
BREAKING CHANGE: userName field in credentials file renamed to username
1 parent 4b5758b commit 23fda4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

downdetector-exporter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func init() {
6868

6969
// BasicAuth contains username and string after reading them in from Yaml file
7070
type BasicAuth struct {
71-
UserName string `json:"userName"`
71+
UserName string `json:"username"`
7272
Password string `json:"password"`
7373
}
7474

@@ -200,7 +200,7 @@ func main() {
200200
&cli.StringFlag{
201201
Name: "credentials_file",
202202
Aliases: []string{"c"},
203-
Usage: "file containing credentials for downdetector. Credentials file is in YAML format and contains two fields, userName and password. Alternatively give username and password, they win over credentials file.",
203+
Usage: "file containing credentials for downdetector. Credentials file is in YAML format and contains two fields, username and password. Alternatively give username and password, they win over credentials file.",
204204
Destination: &credentialsFile,
205205
EnvVars: []string{"CREDENTIALS_FILE"},
206206
},

0 commit comments

Comments
 (0)