Fix PortainerClient.Authenticate usage of viper

This commit is contained in:
Juan Carlos Mejías Rodríguez 2019-08-02 13:24:49 -04:00
parent 064e7789fb
commit 8d0fb72034

View File

@ -118,8 +118,8 @@ func (n *PortainerClient) Authenticate(user, password string) (token string, err
PrintVerbose("Getting auth token...") PrintVerbose("Getting auth token...")
reqBody := AuthenticateUserRequest{ reqBody := AuthenticateUserRequest{
Username: viper.GetString("user"), Username: user,
Password: viper.GetString("password"), Password: password,
} }
respBody := AuthenticateUserResponse{} respBody := AuthenticateUserResponse{}