File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
dbm-services/common/db-resource/internal Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ func (c *MachineResourceGetterInputParam) matchStorageSpecs(db *gorm.DB) {
157157 } else if cmutil .IsNotEmpty (c .DiskType ) {
158158 db .Where (model .JSONQuery ("storage_device" ).SubValContains (c .DiskType , "disk_type" ))
159159 }
160- c .Disk .MatchTotalStorageSize (db )
160+ c .Disk .MatchTotalDataStorageSize (db )
161161 }
162162}
163163
Original file line number Diff line number Diff line change @@ -37,9 +37,9 @@ func (m MeasureRange) Legal() bool {
3737 return true
3838}
3939
40- // MatchTotalStorageSize match total disk capacity
41- func (m * MeasureRange ) MatchTotalStorageSize (db * gorm.DB ) {
42- m .MatchRange (db , "total_storage_cap " )
40+ // MatchTotalDataStorageSize match total data disk capacity
41+ func (m * MeasureRange ) MatchTotalDataStorageSize (db * gorm.DB ) {
42+ m .MatchRange (db , "total_data_storage_cap " )
4343}
4444
4545// MatchMem match memory size range
You can’t perform that action at this time.
0 commit comments