From 848f8ffc3d9acc167cd9d1ecd139b685d9ed3569 Mon Sep 17 00:00:00 2001 From: Jonathon Walker Date: Tue, 18 Oct 2022 17:04:35 +0100 Subject: [PATCH] luci-app-dockerman: change default to nil if data.blkio_weight is not defined Fixes: #5327 Signed-off-by: Jonathon Walker --- .../luasrc/model/cbi/dockerman/newcontainer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/newcontainer.lua b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/newcontainer.lua index c5909bac2e..5d38a352e0 100644 --- a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/newcontainer.lua +++ b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/newcontainer.lua @@ -720,7 +720,7 @@ m.handle = function(self, state, data) local memory = data.memory or 0 local cpu_shares = data.cpu_shares or 0 local cpus = data.cpus or 0 - local blkio_weight = data.blkio_weight or 500 + local blkio_weight = data.blkio_weight or nil local portbindings = {} local exposedports = {} -- 2.30.2