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:
@ -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")
|
||||
|
Reference in New Issue
Block a user