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
Thomas Gambier
slapos.core
Commits
71a5bf71
Commit
71a5bf71
authored
1 year ago
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapproxy: Fix Python2 syntax incompatibility
parent
46f2aac9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
slapos/proxy/views.py
slapos/proxy/views.py
+3
-2
No files found.
slapos/proxy/views.py
View file @
71a5bf71
...
@@ -1110,8 +1110,9 @@ def hateoas_partitions(partition_reference):
...
@@ -1110,8 +1110,9 @@ def hateoas_partitions(partition_reference):
partition
=
execute_db
(
'partition'
,
'SELECT * FROM %s WHERE partition_reference=?'
,
[
partition_reference
],
one
=
True
)
partition
=
execute_db
(
'partition'
,
'SELECT * FROM %s WHERE partition_reference=?'
,
[
partition_reference
],
one
=
True
)
if
partition
is
None
:
if
partition
is
None
:
abort
(
404
)
abort
(
404
)
partition
[
'reference'
]
=
partition
[
'partition_reference'
]
partition
[
'reference'
]
=
partition
[
'partition_reference'
]
return
hateoas_service_document
(
**
partition
,
shared
=
0
)
partition
[
'shared'
]
=
0
return
hateoas_service_document
(
**
partition
)
@
app
.
route
(
'/hateoas/shared/<shared_reference>'
,
methods
=
[
'GET'
])
@
app
.
route
(
'/hateoas/shared/<shared_reference>'
,
methods
=
[
'GET'
])
def
hateoas_shared
(
shared_reference
):
def
hateoas_shared
(
shared_reference
):
...
...
This diff is collapsed.
Click to expand it.
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