Fixes on process logic
This commit is contained in:
@ -15,17 +15,15 @@ function modpol.orgs:call_module(module_slug, initiator, config, result, parent_
|
||||
and result() then
|
||||
result()
|
||||
return
|
||||
elseif not modpol.modules[module_slug] then
|
||||
-- if module doesn't exist, abort
|
||||
modpol.ocutil.log('Error in ' .. self.name .. ':call_module -> module "' .. tostring(module_slug) .. '" not found')
|
||||
return
|
||||
end
|
||||
|
||||
-- if module doesn't exist, abort
|
||||
if not modpol.modules[module_slug] then
|
||||
modpol.ocutil.log('Error in ' .. self.name .. ':call_module -> module "' .. tostring(module_slug) .. '" not found')
|
||||
return
|
||||
end
|
||||
|
||||
local index = #self.processes + 1
|
||||
|
||||
local module = modpol.modules[module_slug]
|
||||
local index = #self.processes + 1
|
||||
|
||||
local module = modpol.modules[module_slug]
|
||||
|
||||
-- first applies any relevant org policies
|
||||
-- then overrides with the config values given on input
|
||||
|
Reference in New Issue
Block a user