Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joanne Hugé
slapos.toolbox
Commits
d079e94e
Commit
d079e94e
authored
Dec 09, 2013
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slaprunner: new function to save custom slapgrid parameters
parent
0db1f6b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
slapos/runner/utils.py
slapos/runner/utils.py
+14
-0
No files found.
slapos/runner/utils.py
View file @
d079e94e
...
...
@@ -50,6 +50,20 @@ def getBuildAndRunParams():
}
return
dict_params
def
saveBuildAndRunParams
(
params
):
"""XXX-Nico parameters have to be correct.
Works like that because this function do not care
about how you got the parameters"""
global
RUN_INSTANCE
global
RUN_SOFTWARE
global
MAX_RUN_INSTANCE
global
MAX_RUN_SOFTWARE
RUN_INSTANCE
=
params
[
'run_instance'
]
RUN_SOFTWARE
=
params
[
'run_software'
]
MAX_RUN_INSTANCE
=
params
[
'max_run_instance'
]
MAX_RUN_SOFTWARE
=
params
[
'max_run_software'
]
def
html_escape
(
text
):
"""Produce entities within text."""
return
""
.
join
(
html_escape_table
.
get
(
c
,
c
)
for
c
in
text
)
...
...
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