From 53ed25d9b6a0141f19fc2e95be7cece5512846c1 Mon Sep 17 00:00:00 2001 From: Albin Kerouanton Date: Fri, 3 Feb 2023 11:39:40 +0100 Subject: [PATCH] Fix bad ThrottleDevice path Fixes moby/moby#44904. Signed-off-by: Albin Kerouanton (cherry picked from commit 56051b84b00fa6a2bda9775231d2209c76d39e03) Signed-off-by: Sebastiaan van Stijn --- opts/throttledevice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opts/throttledevice.go b/opts/throttledevice.go index 9fb788433b..789acf60fc 100644 --- a/opts/throttledevice.go +++ b/opts/throttledevice.go @@ -31,7 +31,7 @@ func ValidateThrottleBpsDevice(val string) (*blkiodev.ThrottleDevice, error) { } return &blkiodev.ThrottleDevice{ - Path: v, + Path: k, Rate: uint64(rate), }, nil }