Commit 20affb4d authored by Julien Muchembled's avatar Julien Muchembled

publish-early: fix UnboundLocalError when there's nothing to do

parent 84ca2ae0
...@@ -63,6 +63,7 @@ class Recipe(GenericSlapRecipe): ...@@ -63,6 +63,7 @@ class Recipe(GenericSlapRecipe):
GenericSlapRecipe.__init__(self, buildout, name, options) GenericSlapRecipe.__init__(self, buildout, name, options)
published_dict = None published_dict = None
publish = False publish = False
publish_dict = {}
for line in options['-init'].splitlines(): for line in options['-init'].splitlines():
if line: if line:
k, v = line.split() k, v = line.split()
...@@ -74,7 +75,6 @@ class Recipe(GenericSlapRecipe): ...@@ -74,7 +75,6 @@ class Recipe(GenericSlapRecipe):
self.computer_id, self.computer_partition_id) self.computer_id, self.computer_partition_id)
published_dict = unwrap( published_dict = unwrap(
computer_partition.getConnectionParameterDict()) computer_partition.getConnectionParameterDict())
publish_dict = {}
try: try:
publish_dict[k] = published_dict[k] publish_dict[k] = published_dict[k]
except KeyError: except KeyError:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment