summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2012-12-19 20:07:56 +0100
committerDavid Sommerseth <davids@redhat.com>2012-12-19 20:07:56 +0100
commit206d298f8aa108ab7a222dd5a8d8a405539e22f8 (patch)
tree39144723c979e960cfa907fdcf9383aec9a68cbf
parent125e033a8ec484e0a5588737b02f3061315ad4ec (diff)
downloadrteval-206d298f8aa108ab7a222dd5a8d8a405539e22f8.tar.gz
rteval-206d298f8aa108ab7a222dd5a8d8a405539e22f8.tar.xz
rteval-206d298f8aa108ab7a222dd5a8d8a405539e22f8.zip
Fix that not all measurement modules where loaded
The iterator loop exited one too early, so one module was always missing. Signed-off-by: David Sommerseth <davids@redhat.com>
-rw-r--r--rteval/rtevalConfig.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/rteval/rtevalConfig.py b/rteval/rtevalConfig.py
index 631007b..50ba06d 100644
--- a/rteval/rtevalConfig.py
+++ b/rteval/rtevalConfig.py
@@ -73,6 +73,7 @@ class rtevalCfgSection(object):
def next(self):
"Function used by the iterator"
+
if not self.__dict__['_rtevalCfgSection__iter_list'] \
or len(self.__dict__['_rtevalCfgSection__iter_list']) == 0:
raise StopIteration
@@ -84,8 +85,6 @@ class rtevalCfgSection(object):
(len(self.__dict__['_rtevalCfgSection__iter_list']) > 0):
elmt = self.__dict__['_rtevalCfgSection__iter_list'].pop()
- if len(self.__dict__['_rtevalCfgSection__iter_list']) == 0:
- raise StopIteration
return (elmt, self.__cfgdata[elmt])