Commit ab98b8cc authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

allow defining after directive as string

parent 13bf8b6a
......@@ -15,6 +15,7 @@ local raise = require('awall.uerror').raise
local util = require('awall.util')
local contains = util.contains
local list = util.list
local PolicyConfig = class()
......@@ -157,8 +158,9 @@ function PolicySet:load()
local data = policy:load()
imported[policy.name] = data
if not data.after then data.after = util.copy(util.list(data.import)) end
if not data.after then data.after = util.copy(list(data.import)) end
if not contains(data.before, '%defaults') then
data.after = list(data.after)
table.insert(data.after, '%defaults')
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