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
dbb512c2
Commit
dbb512c2
authored
Oct 20, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
db0cbdb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
software/ors-amarisoft/slapos-render-config.py
software/ors-amarisoft/slapos-render-config.py
+2
-9
No files found.
software/ors-amarisoft/slapos-render-config.py
View file @
dbb512c2
...
...
@@ -313,7 +313,6 @@ def do_enb():
ref
=
ref_of_shared
(
ishared
)
_
=
json
.
loads
(
ishared
[
'_'
])
ishared
[
'_'
]
=
_
print
(
ref
)
if
'ru_type'
in
_
:
iru_dict
[
ref
]
=
ishared
elif
'cell_type'
in
_
:
...
...
@@ -321,12 +320,7 @@ def do_enb():
else
:
raise
AssertionError
(
'enb: unknown shared instance %r'
%
(
ishared
,))
print
()
print
(
iru_dict
)
print
(
icell_dict
)
# ~ jcell_ru_ref (simplified).
def
ru_of_cell
(
icell
):
def
ru_of_cell
(
icell
):
# ~ jcell_ru_ref
cell_ref
=
ref_of_shared
(
icell
)
ru
=
icell
[
'_'
][
'ru'
]
if
ru
[
'ru_type'
]
==
'ru_ref'
:
...
...
@@ -334,8 +328,7 @@ def do_enb():
elif
ru
[
'ru_type'
]
==
'ruincell_ref'
:
return
ru_of_cell
(
icell_dict
[
ru
[
'ruincell_ref'
]])
else
:
# embedded ru definition
return
ru
return
ru
# embedded ru definition
for
cell_ref
,
icell
in
icell_dict
.
items
():
ru
=
ru_of_cell
(
icell
)
...
...
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