summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-02-04 16:38:31 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-02-04 16:38:31 +0000
commitb8218af0230c4f2e94c4a5b9d4eb23888bc2f66c (patch)
tree4bdd78a7175296697359684b8e570587a7f9311b
parent6d67c1204b70c690f04dc81932a277141cf83128 (diff)
downloadbcfg2-b8218af0230c4f2e94c4a5b9d4eb23888bc2f66c.tar.gz
bcfg2-b8218af0230c4f2e94c4a5b9d4eb23888bc2f66c.tar.bz2
bcfg2-b8218af0230c4f2e94c4a5b9d4eb23888bc2f66c.zip
fix a logic error in updatefix
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5064 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Server/Reports/updatefix.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Reports/updatefix.py b/src/lib/Server/Reports/updatefix.py
index 4a35c31ea..d7740d358 100644
--- a/src/lib/Server/Reports/updatefix.py
+++ b/src/lib/Server/Reports/updatefix.py
@@ -71,6 +71,7 @@ def rollupdate(current_version):
""" function responsible to coordinates all the updates
need current_version as integer
"""
+ ret = None
if current_version < lastversion:
for i in range(current_version, lastversion):
try:
@@ -80,7 +81,6 @@ def rollupdate(current_version):
_fixes[i]()
except:
logger.error("Failed to perform db update %s" % (_fixes[i]), exc_info=1)
- continue
# since array start at 0 but version start at 1 we add 1 to the normal count
ret = InternalDatabaseVersion.objects.create(version=i+1)
return ret