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

Commit

Permalink
Merge pull request #624 from kaccardi/topic/fix-get-tenants-storage
Browse files Browse the repository at this point in the history
ciao-controller: datastore: intialize tenant devices correctly
  • Loading branch information
markdryan authored Oct 3, 2016
2 parents 4c00809 + 53f960a commit b938a42
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 b938a42

Please sign in to comment.