summaryrefslogtreecommitdiffstats
path: root/rteval/modules/loads
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2012-11-30 17:13:52 +0100
committerDavid Sommerseth <davids@redhat.com>2012-11-30 17:13:52 +0100
commit744669173788e619e3f66ab9c717e8643a263cb7 (patch)
tree1f45f41541500ae31e398fa89f0ba54f0221e120 /rteval/modules/loads
parent854ed12b8b89eab07540cf5858ea3479856ccbd7 (diff)
downloadrteval-744669173788e619e3f66ab9c717e8643a263cb7.tar.gz
rteval-744669173788e619e3f66ab9c717e8643a263cb7.tar.xz
rteval-744669173788e619e3f66ab9c717e8643a263cb7.zip
Split out the "object saving" from RtEvalModules::_Import()
This gives a more fine grained control of the instantiating of module objects. This is needed as measurement modules will return some measurement class information, and depending on that will be stored in different object containers. Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'rteval/modules/loads')
-rw-r--r--rteval/modules/loads/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rteval/modules/loads/__init__.py b/rteval/modules/loads/__init__.py
index 3539624..675fcc0 100644
--- a/rteval/modules/loads/__init__.py
+++ b/rteval/modules/loads/__init__.py
@@ -151,7 +151,8 @@ class LoadModules(RtEvalModules):
# for now (jcw)
if m[1].lower() == 'module':
self._cfg.AppendConfig(m[0], modparams)
- self._Import(m[0], self._cfg.GetSection(m[0]))
+ modobj = self._Import(m[0], self._cfg.GetSection(m[0]))
+ self._RegisterModuleObject(m[0], modobj)
def MakeReport(self):