From ba73c89331489f2a7af25a0c9f035cfbaad88847 Mon Sep 17 00:00:00 2001 From: fabiankramm Date: Fri, 10 Jan 2020 14:56:47 +0100 Subject: [PATCH] Fix #857 --- pkg/devspace/cloud/login.go | 4 ++++ pkg/devspace/cloud/provider.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/devspace/cloud/login.go b/pkg/devspace/cloud/login.go index f882d398cd..31c8417ed0 100644 --- a/pkg/devspace/cloud/login.go +++ b/pkg/devspace/cloud/login.go @@ -88,6 +88,10 @@ func (p *provider) Login() error { // Check if we got access p.Key = key + if p.client == nil { + p.client = client.NewClient(p.Name, p.Host, key, "") + } + _, err := p.client.GetSpaces() if err != nil { close(keyChannel) diff --git a/pkg/devspace/cloud/provider.go b/pkg/devspace/cloud/provider.go index 80407e3ea2..3b986a715f 100644 --- a/pkg/devspace/cloud/provider.go +++ b/pkg/devspace/cloud/provider.go @@ -112,7 +112,7 @@ func GetProviderWithOptions(useProviderName, key string, relogin bool, loader co if key != "" { provider.Key = key - provider.client = client.NewClient(providerName, p.Host, key, p.Token) + provider.client = client.NewClient(providerName, p.Host, key, "") // Check if we got access _, err := provider.client.GetSpaces()