From: myrlyn Date: Tue, 18 Oct 2022 15:56:19 +0000 (+0100) Subject: luci-app-dockerman: change default to nil if data.blkio_weight is not defined X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F6035%2Fhead;p=project%2Fluci.git luci-app-dockerman: change default to nil if data.blkio_weight is not defined Signed-off-by: Jonathon Walker --- 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 = {}