luci-app-dockerman: change default to nil if data.blkio_weight is not defined
authorJonathon Walker <jonathon.l.walker@gmail.com>
Tue, 18 Oct 2022 16:04:35 +0000 (17:04 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Oct 2022 21:22:40 +0000 (23:22 +0200)
Fixes: #5327
Signed-off-by: Jonathon Walker <jonathon.l.walker@gmail.com>
applications/luci-app-dockerman/luasrc/model/cbi/dockerman/newcontainer.lua

index c5909bac2e0822990fb1c7bfce5e99ec09d6e176..5d38a352e0dbf5f0103a99e9e9f95b9be96a5f2a 100644 (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 = {}