Skip to content

Commit

Permalink
accept protocol+ipaddress
Browse files Browse the repository at this point in the history
  • Loading branch information
jskazinski authored and David-T-White committed Sep 21, 2023
1 parent 037986c commit 3d962cf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,8 @@ func (controller *Controller) configureClient(credentials map[string]string) err
return nil
}

protocol := "http"
klog.InfoS("login to API", "address", apiAddr, "protocol", protocol, "username", username)
controller.client.StoreCredentials(apiAddr, protocol, username, password)
klog.InfoS("login to API", "address", apiAddr, "username", username)
controller.client.StoreCredentials(apiAddr, "", username, password)
err := controller.client.Login()
if err != nil {
return status.Error(codes.Unauthenticated, err.Error())
Expand Down

0 comments on commit 3d962cf

Please sign in to comment.