More basic functionality for policy change

Created change_policy module (though it still does not have an
approval flow; improved display_policies and display_processes modules.
This commit is contained in:
Nathan Schneider
2022-02-06 22:04:07 -07:00
parent 9d4ad377e6
commit f950b5b94c
4 changed files with 132 additions and 24 deletions

View File

@ -31,10 +31,10 @@ function display_processes:initiate(result)
table.insert(display_table, "Policies:")
for k2,v2 in pairs(v.config) do
local v2_string = ""
if type(v2) ~= "string"
and type(v2) ~= "table" then
v2_string = tostring(v2)
elseif type(v2) == "table" then
if type(v2) == "string" then
v2_string = v2
elseif type(v2) == "table"
or type(v2) == "number" then
v2_string = tostring(v2)
else
v2_string = "Could not render"
@ -43,7 +43,7 @@ function display_processes:initiate(result)
table.insert(display_table, input)
end
end
table.insert(display_table, "\n")
table.insert(display_table, "---")
end
end
local output = table.concat(display_table,"\n")