]> err.no Git - dak/commitdiff
init_db.py: fix for `do_priority'
authorMario Domenech Goulart <mario@ossystems.com.br>
Mon, 8 Feb 2010 18:56:17 +0000 (16:56 -0200)
committerMario Domenech Goulart <mario@ossystems.com.br>
Mon, 8 Feb 2010 18:56:17 +0000 (16:56 -0200)
Look for the right priority from the config file Priority subtree..

Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br>
dak/init_db.py

index daccddefda76f353818118d599b38cfad3dab21f..169f30057cb1d91ff94881057926f8dc4a0dbcb9 100755 (executable)
@@ -174,7 +174,7 @@ class InitDB(object):
         for priority in self.Cnf.SubTree("Priority").List():
             p = Priority()
             p.priority = priority
-            p.level    = self.Cnf.get("Priority::%s", "0")
+            p.level    = self.Cnf.get("Priority::" + priority, "0")
             s.add(p)
 
         s.commit()