luci-app-dockerman: change default to nil if data.blkio_weight is not defined

Fixes: #5327
Signed-off-by: Jonathon Walker <jonathon.l.walker@gmail.com>
This commit is contained in:
Jonathon Walker 2022-10-18 17:04:35 +01:00 committed by Jo-Philipp Wich
parent 38df801a31
commit 848f8ffc3d

View file

@ -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 = {}