Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos-caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Guillaume Hervier
slapos-caddy
Commits
20affb4d
Commit
20affb4d
authored
Jul 31, 2015
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
publish-early: fix UnboundLocalError when there's nothing to do
parent
84ca2ae0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
slapos/recipe/publish_early.py
slapos/recipe/publish_early.py
+1
-1
No files found.
slapos/recipe/publish_early.py
View file @
20affb4d
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment