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
Boxiang Sun
slapos.core
Commits
a0ee108c
Commit
a0ee108c
authored
Jun 03, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some XXXs to slaplib
parent
ce761265
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
slapos/slap/slap.py
slapos/slap/slap.py
+5
-0
No files found.
slapos/slap/slap.py
View file @
a0ee108c
...
@@ -400,7 +400,10 @@ class ComputerPartition(SlapRequester):
...
@@ -400,7 +400,10 @@ class ComputerPartition(SlapRequester):
software_type
=
DEFAULT_SOFTWARE_TYPE
software_type
=
DEFAULT_SOFTWARE_TYPE
request_dict
=
{
request_dict
=
{
# XXX: This should be clearer that it is the id of the computer
# requesting the instance.
'computer_id'
:
self
.
_computer_id
,
'computer_id'
:
self
.
_computer_id
,
# XXX: Same here.
'computer_partition_id'
:
self
.
_partition_id
,
'computer_partition_id'
:
self
.
_partition_id
,
'software_release'
:
software_release
,
'software_release'
:
software_release
,
'software_type'
:
software_type
,
'software_type'
:
software_type
,
...
@@ -634,6 +637,8 @@ class ConnectionHelper:
...
@@ -634,6 +637,8 @@ class ConnectionHelper:
try
:
try
:
self
.
connect
()
self
.
connect
()
header_dict
=
{
'Content-type'
:
content_type
}
header_dict
=
{
'Content-type'
:
content_type
}
# All None values or parameter_dict are converted to the String 'None'
# XXX: This is incoherent behavior to be fixed.
self
.
connection
.
request
(
"POST"
,
self
.
path
+
path
,
self
.
connection
.
request
(
"POST"
,
self
.
path
+
path
,
urllib
.
urlencode
(
parameter_dict
),
header_dict
)
urllib
.
urlencode
(
parameter_dict
),
header_dict
)
# If ssl error : must come from bad configuration
# If ssl error : must come from bad configuration
...
...
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