Skip to content

Commit

Permalink
fix: gcp use project name for cloudprovider
Browse files Browse the repository at this point in the history
  • Loading branch information
Qu Xuan committed Apr 27, 2020
1 parent 74eef22 commit 139b959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/multicloud/google/google.go
Expand Up @@ -750,7 +750,7 @@ func (client *SGoogleClient) GetSubAccounts() ([]cloudprovider.SSubAccount, erro
accounts := []cloudprovider.SSubAccount{}
for _, project := range projects {
subAccount := cloudprovider.SSubAccount{}
subAccount.Name = client.cpcfg.Name
subAccount.Name = project.Name
subAccount.Account = fmt.Sprintf("%s/%s", project.ProjectId, client.clientEmail)
if project.LifecycleState == "ACTIVE" {
subAccount.HealthStatus = api.CLOUD_PROVIDER_HEALTH_NORMAL
Expand Down

0 comments on commit 139b959

Please sign in to comment.