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
Léo-Paul Géneau
slapos.core
Commits
0befb817
Commit
0befb817
authored
Apr 03, 2023
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio_api_style: rationalise output of jIOWebSection_createComputeNode
* Use the same data structure as the rest of the API
parent
763cfe57
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
master/bt5/slapos_jio_api_style/SkinTemplateItem/portal_skins/slapos_jio_api/jIOWebSection_createComputeNode.py
...l_skins/slapos_jio_api/jIOWebSection_createComputeNode.py
+1
-4
No files found.
master/bt5/slapos_jio_api_style/SkinTemplateItem/portal_skins/slapos_jio_api/jIOWebSection_createComputeNode.py
View file @
0befb817
...
@@ -38,15 +38,12 @@ response.setHeader('Content-Type', "application/json")
...
@@ -38,15 +38,12 @@ response.setHeader('Content-Type', "application/json")
return
json
.
dumps
({
return
json
.
dumps
({
"$schema"
:
context
.
getPortalObject
().
portal_types
.
restrictedTraverse
(
compute_node
.
getPortalType
()).
absolute_url
()
"$schema"
:
context
.
getPortalObject
().
portal_types
.
restrictedTraverse
(
compute_node
.
getPortalType
()).
absolute_url
()
+
"/getTextContent"
,
+
"/getTextContent"
,
"title"
:
compute_node
.
getTitle
(),
"compute_node_id"
:
compute_node
.
getReference
(),
"id"
:
compute_node
.
getRelativeUrl
(),
"reference"
:
compute_node
.
getReference
(),
"access_token"
:
"V2/"
+
compute_node
.
getId
()
+
"/"
+
access_token_id
,
"access_token"
:
"V2/"
+
compute_node
.
getId
()
+
"/"
+
access_token_id
,
"certificate_url_access"
:
request_url
,
"certificate_url_access"
:
request_url
,
"initialisation_comand"
:
compute_node_install_command_line
,
"initialisation_comand"
:
compute_node_install_command_line
,
"slapos_master_web"
:
slapos_master_web_url
,
"slapos_master_web"
:
slapos_master_web_url
,
"slapos_master_api"
:
slapos_master_api
,
"slapos_master_api"
:
slapos_master_api
,
"modification_date"
:
compute_node
.
getModificationDate
().
HTML4
(),
# Kept for backward compatibility
# Kept for backward compatibility
"command_line"
:
compute_node_install_command_line
,
"command_line"
:
compute_node_install_command_line
,
},
indent
=
2
)
},
indent
=
2
)
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