General housekeeping
This commit is contained in:
@@ -2,8 +2,6 @@ import logging
|
||||
|
||||
from core.apirequest import executeRequest
|
||||
from core.runtime.runtimecontract import buildRuntimeAttr, buildPreRuntimeAttr
|
||||
#from core.runtime.stopsignals import addStopSignal
|
||||
|
||||
|
||||
def buildAction (action, outputs):
|
||||
action_log = True
|
||||
|
||||
@@ -27,16 +27,13 @@ def registerLifecycle(module, lifecycles):
|
||||
mode = getattr(module, "mode")
|
||||
lifecycles[module.name]["mode"] = mode
|
||||
else:
|
||||
lifecycles[module.name]["mode"] = {}
|
||||
|
||||
#else:
|
||||
# lifecycles[module.name]["mode"] = "oneshot"
|
||||
lifecycles[module.name]["mode"] = "oneshot"
|
||||
|
||||
if lifecycles[module.name]["mode"] == "continuous":
|
||||
lifecycles[module.name]["refresh_rate"] = module.sleeptime
|
||||
|
||||
if lifecycles[module.name]["mode"] == {}:
|
||||
lifecycles[module.name]["mode"] = "oneshot"
|
||||
#if lifecycles[module.name]["mode"] == {}:
|
||||
# lifecycles[module.name]["mode"] = "oneshot"
|
||||
|
||||
#lifecycles[module.name][registryname] = registryvalue
|
||||
|
||||
|
||||
@@ -32,14 +32,10 @@ def buildListener(listener, self):
|
||||
allow, status_code = buildFirewall(listener, outputs)
|
||||
|
||||
if allow:
|
||||
#from core.execution.executioncontract import executeContract
|
||||
from core.execution.createthread import buildThread
|
||||
|
||||
#Print allowed items for logging purposes
|
||||
logging.info(outputs["firewall_allowed"])
|
||||
|
||||
#Process and forward to RMASS
|
||||
#responses = executeContract(listener.execute, outputs)
|
||||
thread = buildThread(listener.execute)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user