Skip to content

Commit

Permalink
vpcagent: apihelper: use IModelSet.IncludeDetails()
Browse files Browse the repository at this point in the history
  • Loading branch information
yousong committed May 21, 2020
1 parent 2a0cac9 commit 39a19d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/vpcagent/apihelper/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ type IModelSet interface {
NewModel() db.IModel
AddModel(db.IModel)
Copy() IModelSet

IncludeDetails() bool
}

func SyncModelSets(mssOld IModelSets, s *mcclient.ClientSession, batchSize int) (r ModelSetsUpdateResult, err error) {
Expand All @@ -50,7 +52,7 @@ func SyncModelSets(mssOld IModelSets, s *mcclient.ClientSession, batchSize int)
MinUpdatedAt: minUpdatedAt,
ModelSet: msNew,
BatchListSize: batchSize,
IncludeDetails: true,
IncludeDetails: msNew.IncludeDetails(),
})
if err != nil {
return
Expand Down

0 comments on commit 39a19d1

Please sign in to comment.