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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
7795067c
Commit
7795067c
authored
Jul 13, 2011
by
Rafael Monnerat
👻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify Implementation and reuse simple method
parent
ef150497
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
14 deletions
+3
-14
slapos/proxy/views.py
slapos/proxy/views.py
+3
-14
No files found.
slapos/proxy/views.py
View file @
7795067c
...
...
@@ -105,13 +105,6 @@ def software_release_ignored_api(computer_id):
@
app
.
route
(
'/<computer_id>/software/error'
,
methods
=
[
'POST'
])
def
softwareReleaseError
(
computer_id
):
@
app
.
route
(
'/<computer_id>/partition/<computer_partition_id>/building'
,
methods
=
[
'POST'
])
def
buildingComputerPartition
(
computer_id
,
computer_partition_id
):
return
'Ignored'
@
app
.
route
(
'/<computer_id>/partition/<computer_partition_id>/available'
,
methods
=
[
'POST'
])
def
availableComputerPartition
(
computer_id
,
computer_partition_id
):
return
'Ignored'
@
app
.
route
(
'/<computer_id>/partition/<computer_partition_id>/error'
,
methods
=
[
'POST'
])
...
...
@@ -119,16 +112,12 @@ def softwareInstanceError(computer_id, computer_partition_id):
error_log
=
request
.
form
[
'error_log'
]
return
'Ignored'
@
app
.
route
(
'/<computer_id>/partition/<computer_partition_id>/building'
,
methods
=
[
'POST'
])
@
app
.
route
(
'/<computer_id>/partition/<computer_partition_id>/available'
,
methods
=
[
'POST'
])
@
app
.
route
(
'/<computer_id>/partition/<computer_partition_id>/started'
,
methods
=
[
'POST'
])
def
startedComputerPartition
(
computer_id
,
computer_partition_id
):
return
'Ignored'
@
app
.
route
(
'/<computer_id>/partition/<computer_partition_id>/stopped'
,
methods
=
[
'POST'
])
def
stoppedComputerPartition
(
computer_id
,
computer_partition_id
):
return
'Ignored'
@
app
.
route
(
'/<computer_id>/partition/<computer_partition_id>/destroyed'
,
methods
=
[
'POST'
])
def
destroyedComputerPartition
(
computer_id
,
computer_partition_id
):
def
computer_partition_ignored_api
(
computer_id
,
computer_partition_id
):
return
'Ignored'
#@app.route('/partition/<partition_reference>', methods=['PUT'])
...
...
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