From 10ace87ca9d2ba9394b9394d055ccc74702e4666 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Fri, 5 Jun 2020 08:10:59 -0400 Subject: Fix handling of ThrottleWriteIOPSDevice This is causing the UBuntu tests to fail. Signed-off-by: Daniel J Walsh --- pkg/specgen/generate/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/specgen/generate') diff --git a/pkg/specgen/generate/container.go b/pkg/specgen/generate/container.go index a217125f4..3d70571d5 100644 --- a/pkg/specgen/generate/container.go +++ b/pkg/specgen/generate/container.go @@ -194,7 +194,7 @@ func finishThrottleDevices(s *specgen.SpecGenerator) error { s.ResourceLimits.BlockIO.ThrottleReadIOPSDevice = append(s.ResourceLimits.BlockIO.ThrottleReadIOPSDevice, v) } } - if iops := s.ThrottleWriteBpsDevice; len(iops) > 0 { + if iops := s.ThrottleWriteIOPSDevice; len(iops) > 0 { for k, v := range iops { statT := unix.Stat_t{} if err := unix.Stat(k, &statT); err != nil { -- cgit v1.2.3-54-g00ecf