From 8d0fb72034bbbe3f32db491bb175f6883b267d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Mej=C3=ADas=20Rodr=C3=ADguez?= Date: Fri, 2 Aug 2019 13:24:49 -0400 Subject: [PATCH] Fix PortainerClient.Authenticate usage of viper --- common/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/client.go b/common/client.go index a159089..efc8254 100644 --- a/common/client.go +++ b/common/client.go @@ -118,8 +118,8 @@ func (n *PortainerClient) Authenticate(user, password string) (token string, err PrintVerbose("Getting auth token...") reqBody := AuthenticateUserRequest{ - Username: viper.GetString("user"), - Password: viper.GetString("password"), + Username: user, + Password: password, } respBody := AuthenticateUserResponse{}