Add API endpoint for some scaleset ops
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
85eac363d5
commit
7e1a83c79a
31 changed files with 2768 additions and 25 deletions
|
|
@ -427,7 +427,10 @@ func (s *sqlDatabase) ListEntityInstances(_ context.Context, entity params.Githu
|
|||
}
|
||||
ret := []params.Instance{}
|
||||
for _, pool := range pools {
|
||||
for _, instance := range pool.Instances {
|
||||
instances := pool.Instances
|
||||
pool.Instances = nil
|
||||
for _, instance := range instances {
|
||||
instance.Pool = pool
|
||||
paramsInstance, err := s.sqlToParamsInstance(instance)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "fetching instance")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue