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
Roque
slapos.core
Commits
c044d7bc
Commit
c044d7bc
authored
Jul 13, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Rest API for building too
parent
fba941d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
slapos/slap/slap.py
slapos/slap/slap.py
+4
-4
No files found.
slapos/slap/slap.py
View file @
c044d7bc
...
@@ -316,9 +316,9 @@ class ComputerPartition(SlapDocument):
...
@@ -316,9 +316,9 @@ class ComputerPartition(SlapDocument):
return
computer_partition
return
computer_partition
def
building
(
self
):
def
building
(
self
):
self
.
_connection_helper
.
POST
(
'/buildingComputerPartition'
,
{
url
=
"/%s/partition/%s/building"
%
(
self
.
_computer_id
,
'computer_id'
:
self
.
_computer_id
,
self
.
_partition_id
)
'computer_partition_id'
:
self
.
_partition_id
}
)
self
.
_connection_helper
.
POST
(
url
)
def
available
(
self
):
def
available
(
self
):
url
=
"/%s/partition/%s/available"
%
(
self
.
_computer_id
,
url
=
"/%s/partition/%s/available"
%
(
self
.
_computer_id
,
...
@@ -344,7 +344,7 @@ class ComputerPartition(SlapDocument):
...
@@ -344,7 +344,7 @@ class ComputerPartition(SlapDocument):
url
=
"/%s/partition/%s/error"
%
(
self
.
_computer_id
,
url
=
"/%s/partition/%s/error"
%
(
self
.
_computer_id
,
self
.
_partition_id
)
self
.
_partition_id
)
self
.
_connection_helper
.
POST
(
url
,
{
self
.
_connection_helper
.
POST
(
url
,
{
'error_log'
:
error_log
})
'error_log'
:
error_log
,
})
def
getId
(
self
):
def
getId
(
self
):
return
self
.
_partition_id
return
self
.
_partition_id
...
...
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