Skip to content

Commit

Permalink
proper env var
Browse files Browse the repository at this point in the history
  • Loading branch information
ElDuderinos committed Jul 31, 2023
1 parent d3b848e commit 8ff942f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions filters.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
cjson = require("cjson")

cache = {}
containerz = os.getenv("CONTAINERS_PATH")

local function get_metadata(container_id)
-- Read config file
local containerz = os.getenv("CONTAINERS_PATH")

local config_file_path = CONTAINERS_PATH .. "/" .. container_id .. "/config.v2.json"
local config_file_path = containerz .. "/" .. container_id .. "/config.v2.json"
local config_file = io.open(config_file_path, "rb")
if not config_file then
io.write(string.format("no config file for %s\n",container_id))
Expand Down

0 comments on commit 8ff942f

Please sign in to comment.