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

Signed-off-by: Jonathon Walker <jonathon.l.walker@gmail.com>
This commit is contained in:
myrlyn 2022-10-18 16:56:19 +01:00
parent afd0012939
commit 72fe875dac

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