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
Labels
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
ec7461b2
Commit
ec7461b2
authored
Feb 01, 2024
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
slapos_jio: Display Network information if available to the user.
See merge request
nexedi/slapos.core!601
parents
841eaf82
69fbc9d4
Pipeline
#32568
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/SoftwareInstance_getAllocationInformation.py
...l_json_style/SoftwareInstance_getAllocationInformation.py
+5
-2
No files found.
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/SoftwareInstance_getAllocationInformation.py
View file @
ec7461b2
...
...
@@ -3,9 +3,12 @@ if context.getAggregate() is None:
partition
=
context
.
getAggregateValue
(
checked_permission
=
"View"
)
if
partition
is
not
None
:
return
"%s (%s)"
%
(
allocation_information
=
"%s (%s)"
%
(
partition
.
getParentValue
().
getReference
(),
partition
.
getReference
())
network_title
=
partition
.
getParentValue
().
getSubordinationTitle
(
checked_permission
=
"View"
)
if
network_title
is
not
None
:
allocation_information
+=
" - %s"
%
network_title
return
allocation_information
return
context
.
Base_translateString
(
"Restricted information"
)
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