Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
104
Merge Requests
104
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
e02f48d8
Commit
e02f48d8
authored
May 03, 2012
by
Vincent Pelletier
Committed by
Sebastien Robin
May 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify code a bit.
parent
e5ea105f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
slapos/recipe/request.py
slapos/recipe/request.py
+2
-6
No files found.
slapos/recipe/request.py
View file @
e02f48d8
...
...
@@ -45,9 +45,7 @@ class Recipe(object):
options
[
'computer-id'
],
options
[
'partition-id'
])
self
.
request
=
computer_partition
.
request
self
.
isSlave
=
False
if
'slave'
in
options
:
self
.
isSlave
=
options
[
'slave'
].
lower
()
in
[
'y'
,
'yes'
,
'true'
,
'1'
]
self
.
isSlave
=
options
.
get
(
'slave'
,
''
).
lower
()
in
[
'y'
,
'yes'
,
'true'
,
'1'
]
self
.
return_parameters
=
[]
if
'return'
in
options
:
...
...
@@ -57,9 +55,7 @@ class Recipe(object):
self
.
logger
.
debug
(
"No parameter to return to main instance."
"Be careful about that..."
)
software_type
=
'RootInstanceSoftware'
if
'software-type'
in
options
:
software_type
=
options
[
'software-type'
]
software_type
=
options
.
get
(
'software-type'
,
'RootInstanceSoftware'
)
filter_kw
=
{}
if
'sla'
in
options
:
...
...
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