mirror of https://github.com/docker/cli.git
Merge pull request #5341 from thaJeztah/25.0_backport_fix_bps_limit
[25.0 backport] run: fix GetList return empty issue for throttledevice
This commit is contained in:
commit
32ac720d7a
|
@ -94,7 +94,7 @@ func (opt *ThrottledeviceOpt) String() string {
|
||||||
|
|
||||||
// GetList returns a slice of pointers to ThrottleDevices.
|
// GetList returns a slice of pointers to ThrottleDevices.
|
||||||
func (opt *ThrottledeviceOpt) GetList() []*blkiodev.ThrottleDevice {
|
func (opt *ThrottledeviceOpt) GetList() []*blkiodev.ThrottleDevice {
|
||||||
out := make([]*blkiodev.ThrottleDevice, 0, len(opt.values))
|
out := make([]*blkiodev.ThrottleDevice, len(opt.values))
|
||||||
copy(out, opt.values)
|
copy(out, opt.values)
|
||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue