Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
ciao-controller: datastore: intialize tenant devices correctly
Browse files Browse the repository at this point in the history
When getting tenants using getTenants make sure to get the
any block devices for those tenants.

Signed-off-by: Kristen Carlson Accardi <[email protected]>
  • Loading branch information
kaccardi committed Oct 1, 2016
1 parent 37625c2 commit 53f960a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ciao-controller/internal/datastore/sqlite3db.go
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,11 @@ func (ds *sqliteDB) getTenantsNoCache() ([]*tenant, error) {
return nil, err
}

t.devices, err = ds.getTenantDevices(t.ID)
if err != nil {
return nil, err
}

tenants = append(tenants, t)
}
if err = rows.Err(); err != nil {
Expand Down

0 comments on commit 53f960a

Please sign in to comment.