Commit fe3ce1d7 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

make boolean variables work

parent fc86983f
--[[
Policy file handling for Alpine Wall
Copyright (C) 2012-2013 Kaarle Ritvanen
Copyright (C) 2012-2014 Kaarle Ritvanen
See LICENSE file for license details
]]--
......@@ -43,7 +43,7 @@ function PolicyConfig:expand()
table.insert(visited, name)
local var = self.data.variable[name]
if not var then raise('Invalid variable reference: '..name) end
if var == nil then raise('Invalid variable reference: '..name) end
if si == 1 and ei == string.len(value) then value = var
elseif contains({'number', 'string'}, type(var)) then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment