Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.recipe.template
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
Romain Courteaud
slapos.recipe.template
Commits
a2748676
Commit
a2748676
authored
Aug 01, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make "context" parameter really optional.
Reported by Timothee Lacroix.
parent
b616a83a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
slapos/recipe/template/jinja2_template.py
slapos/recipe/template/jinja2_template.py
+1
-1
No files found.
slapos/recipe/template/jinja2_template.py
View file @
a2748676
...
@@ -75,7 +75,7 @@ class Recipe(object):
...
@@ -75,7 +75,7 @@ class Recipe(object):
self
.
context
=
context
=
{}
self
.
context
=
context
=
{}
if
_buildout_safe_dumps
is
not
None
:
if
_buildout_safe_dumps
is
not
None
:
context
[
DUMPS_KEY
]
=
_buildout_safe_dumps
context
[
DUMPS_KEY
]
=
_buildout_safe_dumps
for
line
in
options
.
get
(
'context'
).
splitlines
(
False
):
for
line
in
options
.
get
(
'context'
,
''
).
splitlines
(
False
):
if
not
line
:
if
not
line
:
continue
continue
expression_type
,
variable_name
,
expression
=
line
.
split
(
None
,
2
)
expression_type
,
variable_name
,
expression
=
line
.
split
(
None
,
2
)
...
...
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