clean up
git-svn-id: file:///home/svn/framework3/trunk@8660 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
99f4507405
commit
be0fc489b1
|
@ -203,12 +203,15 @@ class FrameworkEventSubscriber
|
|||
include GeneralEventSubscriber
|
||||
def on_module_run(instance)
|
||||
if framework.db.active
|
||||
datastore_hash = instance.datastore.to_h
|
||||
|
||||
info = {}
|
||||
info[:module_name] = instance.refname
|
||||
info[:datastore] = datastore_hash
|
||||
report_event(:name => "module_run", :info => info, :workspace => framework.db.find_workspace(instance.workspace))
|
||||
event = {
|
||||
:workspace => framework.db.find_workspace(session.workspace),
|
||||
:name => "module_run",
|
||||
:info => {
|
||||
:module_name => instance.refname,
|
||||
:datastore => instance.datastore.to_h
|
||||
}
|
||||
}
|
||||
report_event(event)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue