Handle auth files with BearerToken sections.

This commit is contained in:
Eric Tune
2014-10-20 13:49:24 -07:00
parent 71c6f8ee5c
commit 21dae01005
6 changed files with 39 additions and 14 deletions

View File

@@ -216,6 +216,9 @@ func main() {
if auth.KeyFile != "" {
clientConfig.KeyFile = auth.KeyFile
}
if auth.BearerToken != "" {
clientConfig.BearerToken = auth.BearerToken
}
if auth.Insecure != nil {
clientConfig.Insecure = *auth.Insecure
}