summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
diff options
context:
space:
mode:
authorHolger Weiß <holger@zedat.fu-berlin.de>2011-09-12 15:59:06 +0200
committerHolger Weiß <holger@zedat.fu-berlin.de>2011-09-12 15:59:06 +0200
commit29b4eaa020d07afa845df32b4c8b6f4ecc15ba89 (patch)
tree107efd567ecda88defdb678e44ff21d5635b3e40 /src/lib/Client
parent2fc2ad4287d49b050df5a87ca8f3f56f2be25142 (diff)
downloadbcfg2-29b4eaa020d07afa845df32b4c8b6f4ecc15ba89.tar.gz
bcfg2-29b4eaa020d07afa845df32b4c8b6f4ecc15ba89.tar.bz2
bcfg2-29b4eaa020d07afa845df32b4c8b6f4ecc15ba89.zip
DebInit: Always initialize "start_sequence"
Make sure the "start_sequence" variable is initialized. This fixes a traceback which occurred when a <Service> "sequence" has been specified on Debian systems which use dependency-based booting.
Diffstat (limited to 'src/lib/Client')
-rw-r--r--src/lib/Client/Tools/DebInit.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/DebInit.py b/src/lib/Client/Tools/DebInit.py
index be51a5303..022332602 100644
--- a/src/lib/Client/Tools/DebInit.py
+++ b/src/lib/Client/Tools/DebInit.py
@@ -40,6 +40,7 @@ class DebInit(Bcfg2.Client.Tools.SvcTool):
start_sequence = int(entry.get('sequence'))
kill_sequence = 100 - start_sequence
else:
+ start_sequence = None
self.logger.warning("Your debian version boot sequence is "
"dependency based \"sequence\" attribute "
"will be ignored.")