Skip to content

Commit

Permalink
fetch service instance by ID
Browse files Browse the repository at this point in the history
  • Loading branch information
diya-dhan committed Jun 11, 2024
1 parent b5582a8 commit 5678134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/btpcli/facade_services_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (f servicesInstanceFacade) Create(ctx context.Context, args *ServiceInstanc
if cmdRes.StatusCode != 202 && err == nil {
return serviceInstanceResponseObject, cmdRes, err
} else if cmdRes.StatusCode == 202 && err == nil {
return f.GetByName(ctx, args.Subaccount, args.Name)
return f.GetById(ctx, args.Subaccount, serviceInstanceResponseObject.Id)
} else {
// Error case as default
return servicemanager.ServiceInstanceResponseObject{}, cmdRes, err
Expand Down

0 comments on commit 5678134

Please sign in to comment.