diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-06-05 09:23:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-05 09:23:50 -0400 |
commit | 2f2ffd8678587db040ae76ef0231669ee19a5175 (patch) | |
tree | 343b64c0ef1ab1eaea129c2b248dff5bc0dcc104 /pkg/specgen/generate | |
parent | b0578963aaf83e4c5686b957fd09c9311eac35c6 (diff) | |
parent | 10ace87ca9d2ba9394b9394d055ccc74702e4666 (diff) | |
download | podman-2f2ffd8678587db040ae76ef0231669ee19a5175.tar.gz podman-2f2ffd8678587db040ae76ef0231669ee19a5175.tar.bz2 podman-2f2ffd8678587db040ae76ef0231669ee19a5175.zip |
Merge pull request #6501 from rhatdan/iops
Fix handling of ThrottleWriteIOPSDevice
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 { |