Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos
Commits
1a2839ad
Commit
1a2839ad
authored
1 year ago
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
1d56d836
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
software/ors-amarisoft/config/enb.jinja2.cfg
software/ors-amarisoft/config/enb.jinja2.cfg
+4
-0
software/ors-amarisoft/slapos-render-config.py
software/ors-amarisoft/slapos-render-config.py
+13
-2
No files found.
software/ors-amarisoft/config/enb.jinja2.cfg
View file @
1a2839ad
...
...
@@ -71,6 +71,10 @@
{%- endif %}
{%- endfor %}
{{ print('\nru_dict:') }} {{ pprint(ru_dict) }}
{{ print('\ncell_dict:') }} {{ pprint(cell_dict) }}
{#- verify that there is no dangling cell->ru references #}
{%- for _, cell in cell_dict|dictsort %}
{%- set ru_ref = J(jcell_ru_ref(cell)) %}
...
...
This diff is collapsed.
Click to expand it.
software/ors-amarisoft/slapos-render-config.py
View file @
1a2839ad
import
json
,
copy
import
json
,
copy
,
sys
,
pprint
config
=
"enb"
json_params_empty
=
"""{
...
...
@@ -345,9 +345,20 @@ class Recipe():
else
:
super
(
Recipe
,
self
).
update
()
def
_print
(
*
argv
):
print
(
*
argv
,
file
=
sys
.
stderr
)
def
_pprint
(
obj
):
pprint
.
pprint
(
obj
,
sys
.
stderr
)
r
=
Recipe
()
ctx
=
json
.
loads
(
json_params
)
ctx
.
update
({
'json_module'
:
json
})
ctx
.
update
({
'json_module'
:
json
,
'print'
:
_print
,
'pprint'
:
_pprint
,
})
r
.
_init
(
"recipe"
,
{
'extensions'
:
'jinja2.ext.do'
,
'url'
:
'config/{}.jinja2.cfg'
.
format
(
config
),
...
...
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