Skip to content

Commit

Permalink
Merge pull request #858 from devspace-cloud/development
Browse files Browse the repository at this point in the history
Fix #857
  • Loading branch information
FabianKramm authored Jan 10, 2020
2 parents d0387a0 + ba73c89 commit e16b0e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pkg/devspace/cloud/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pkg/devspace/cloud/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e16b0e4

Please sign in to comment.