Skip to content

Commit

Permalink
feat(cloud-provisioning): Adds functions to cloudproviders web client
Browse files Browse the repository at this point in the history
Closes VC-33251
  • Loading branch information
rvelaVenafi committed May 11, 2024
1 parent 9aad422 commit 31f5507
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,17 @@ func (c *CloudProvidersClient) GetCloudProviderByName(ctx context.Context, name

cp := resp.GetCloudProviders().Nodes[0]

statusDetails := ""
if cp.GetStatusDetails() != nil {
statusDetails = *cp.GetStatusDetails()
}

return &CloudProvider{
ID: uuid.MustParse(cp.GetId()),
Name: cp.GetName(),
Type: string(cp.GetType()),
Status: string(cp.GetStatus()),
StatusDetails: *cp.GetStatusDetails(),
StatusDetails: statusDetails,
KeystoresCount: cp.GetKeystoresCount(),
}, nil
}

0 comments on commit 31f5507

Please sign in to comment.