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
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
Nirina Malard
slapos
Commits
05c87b9c
Commit
05c87b9c
authored
Aug 17, 2023
by
Lu Xu
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
368568b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+1
-1
software/ors-amarisoft/lopcomm-rrh-software.jinja2.py
software/ors-amarisoft/lopcomm-rrh-software.jinja2.py
+2
-1
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
05c87b9c
...
...
@@ -36,7 +36,7 @@ md5sum = b34fe47a73890097fbc6ea6374aeb38d
[lopcomm-rrh-software.jinja2.py]
_update_hash_filename_ = lopcomm-rrh-software.jinja2.py
md5sum =
cc23b3e09144753e2f53841b1426ee18
md5sum =
04864d7eb1319c8451f3f92c5cf18629
[template-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
...
...
software/ors-amarisoft/lopcomm-rrh-software.jinja2.py
View file @
05c87b9c
...
...
@@ -95,7 +95,7 @@ if __name__ == '__main__':
active_slot_name
=
None
software_slots
=
inventory_data
[
'nc:rpc-reply'
][
'data'
][
'software-inventory'
][
'software-slot'
]
for
slot
in
software_slots
:
if
slot
[
'active'
]
==
'
tru
e'
:
if
slot
[
'active'
]
==
'
false'
and
slot
[
'running'
]
==
'fals
e'
:
active_slot_name
=
slot
[
'name'
]
break
...
...
@@ -112,6 +112,7 @@ if __name__ == '__main__':
if
install_reply_xml
:
install_data
=
xmltodict
.
parse
(
install_reply_xml
)
nc
.
software_output_json_logger
.
info
(
''
,
extra
=
{
'data'
:
install_data
})
break
except
Exception
as
e
:
nc
.
logger
.
debug
(
'Got exception, waiting 10 seconds before reconnecting...'
)
...
...
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