diff options
author | Jonathon Walker <jonathon.l.walker@gmail.com> | 2022-10-18 17:04:35 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-10-18 23:22:40 +0200 |
commit | 848f8ffc3d9acc167cd9d1ecd139b685d9ed3569 (patch) | |
tree | 1d17fc5af6fe09cfdd470b2e90e355bd1342166b /applications/luci-app-dockerman/luasrc/model/cbi | |
parent | 38df801a31be3cf8b3d7ab9fbc899ebea48b2532 (diff) |
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>
Diffstat (limited to 'applications/luci-app-dockerman/luasrc/model/cbi')
-rw-r--r-- | applications/luci-app-dockerman/luasrc/model/cbi/dockerman/newcontainer.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 c5909bac2e..5d38a352e0 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 = {} |