diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-06-05 08:10:59 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-06-05 08:11:37 -0400 |
commit | 10ace87ca9d2ba9394b9394d055ccc74702e4666 (patch) | |
tree | 343b64c0ef1ab1eaea129c2b248dff5bc0dcc104 /pkg/specgen/generate | |
parent | b0578963aaf83e4c5686b957fd09c9311eac35c6 (diff) | |
download | podman-10ace87ca9d2ba9394b9394d055ccc74702e4666.tar.gz podman-10ace87ca9d2ba9394b9394d055ccc74702e4666.tar.bz2 podman-10ace87ca9d2ba9394b9394d055ccc74702e4666.zip |
Fix handling of ThrottleWriteIOPSDevice
This is causing the UBuntu tests to fail.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/specgen/generate')
-rw-r--r-- | pkg/specgen/generate/container.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |