Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Arnaud Véron
slapos.core
Commits
7e2f8eec
Commit
7e2f8eec
authored
Mar 02, 2023
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cli/info: support connection dict from SlapOS Master
parent
3bfaea55
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
slapos/cli/info.py
slapos/cli/info.py
+8
-1
No files found.
slapos/cli/info.py
View file @
7e2f8eec
...
@@ -82,6 +82,13 @@ def do_info(logger, conf, local):
...
@@ -82,6 +82,13 @@ def do_info(logger, conf, local):
software_schema
=
SoftwareReleaseSchema
(
software_schema
=
SoftwareReleaseSchema
(
instance
.
_software_release_url
,
instance
.
_software_release_url
,
getattr
(
instance
,
'_software_type'
,
None
))
getattr
(
instance
,
'_software_type'
,
None
))
if
isinstance
(
instance
.
_connection_dict
,
list
):
# this is slapos master connection dict
connection_parameter_dict
=
{}
for
param
in
instance
.
_connection_dict
:
connection_parameter_dict
[
param
[
'connection_key'
]]
=
param
[
'connection_value'
]
else
:
# this is slapproxy connection dict
connection_parameter_dict
=
xml2dict
(
instance
.
_connection_dict
)
connection_parameter_dict
=
xml2dict
(
instance
.
_connection_dict
)
try
:
try
:
software_serialisation
=
software_schema
.
getSerialisation
()
software_serialisation
=
software_schema
.
getSerialisation
()
...
...
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