From 72fe875dac84d4bb97bd8e4098ccbe89476a8589 Mon Sep 17 00:00:00 2001 From: myrlyn Date: Tue, 18 Oct 2022 16:56:19 +0100 Subject: [PATCH] luci-app-dockerman: change default to nil if data.blkio_weight is not defined 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 37734ad015..c9bb0daa0a 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