summaryrefslogtreecommitdiff
path: root/pkg/specgen/generate
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-06-05 08:10:59 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-06-05 08:11:37 -0400
commit10ace87ca9d2ba9394b9394d055ccc74702e4666 (patch)
tree343b64c0ef1ab1eaea129c2b248dff5bc0dcc104 /pkg/specgen/generate
parentb0578963aaf83e4c5686b957fd09c9311eac35c6 (diff)
downloadpodman-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.go2
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 {