Commit 4f40a36c authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

wrapped a long statement in policy.lua

parent 22bbf4b9
......@@ -154,6 +154,12 @@ function PolicySet:list()
i = i + 1
if i > #pols then return end
local name = pols[i][1]
return name, self:findsymlink(name) and 'enabled' or util.contains(imported, name) and 'required'or 'disabled'
local status
if self:findsymlink(name) then status = 'enabled'
elseif util.contains(imported, name) then status = 'required'
else status = 'disabled' end
return name, status
end
end
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