Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Aurélien Vermylen
slapos
Commits
e9db1601
Commit
e9db1601
authored
13 years ago
by
Łukasz Nowak
Committed by
Antoine Catton
13 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Use split instead of splitlines.
It makes writing profiles easier.
parent
3d51fe25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
slapos/recipe/request.py
slapos/recipe/request.py
+1
-1
No files found.
slapos/recipe/request.py
View file @
e9db1601
...
@@ -56,7 +56,7 @@ class Recipe(object):
...
@@ -56,7 +56,7 @@ class Recipe(object):
self
.
return_parameters
=
[]
self
.
return_parameters
=
[]
if
'return'
in
options
:
if
'return'
in
options
:
self
.
return_parameters
=
[
str
(
parameter
).
strip
()
self
.
return_parameters
=
[
str
(
parameter
).
strip
()
for
parameter
in
options
[
'return'
].
split
lines
()]
for
parameter
in
options
[
'return'
].
split
()]
else
:
else
:
self
.
logger
.
warning
(
"No parameter to return to main instance."
self
.
logger
.
warning
(
"No parameter to return to main instance."
"Be careful about that..."
)
"Be careful about that..."
)
...
...
This diff is collapsed.
Click to expand it.
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