luci-app-dockerman: model/docker: update options object for status_path
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 29 Jul 2020 09:33:08 +0000 (11:33 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Wed, 29 Jul 2020 09:43:10 +0000 (11:43 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-dockerman/luasrc/model/docker.lua

index 891afe7470852cde544cf585b7cc02407080a738..a0c74c0e4115b0921352ff68d6b718b7abe036e8 100644 (file)
@@ -288,13 +288,15 @@ _docker.new = function()
                debug_path = uci:get("dockerd", "globals", "debug_path") or "/tmp/.docker_debug"
        end
 
+       local status_path = uci:get("dockerd", "globals", "status_path") or "/tmp/.docker_status"
+
        _docker.options = {
                host = host,
                port = port,
                socket_path = socket_path,
                debug = debug,
                debug_path = debug_path,
-               status_path = uci:get("dockerd", "globals", "status_path") or "/tmp/.docker_status"
+               status_path = status_path
        }
 
        local _new = docker.new(_docker.options)