Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
11
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
30135b30
authored
Jul 12, 2019
by
Chif Gergő
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix linter errors
parent
d1d3fba5
Pipeline
#766
failed with stages
in 17 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
recircle/instance/views.py
+3
-4
recircle/interface_openstack
+1
-1
No files found.
recircle/instance/views.py
View file @
30135b30
from
instance.models
import
Instance
from
instance.serializers
import
InstanceSerializer
,
FlavorSerializer
from
django.http
import
Http404
from
django.http
import
Http40
from
django.conf
import
settings
from
rest_framework.views
import
APIView
from
rest_framework.response
import
Response
from
rest_framework
import
status
...
...
@@ -9,7 +9,6 @@ from interface_openstack.implementation.vm.instance import (
)
from
template.models
import
InstanceTemplate
from
instance.models
import
Instance
,
Flavor
,
Lease
from
django.contrib.auth.models
import
User
class
InstanceList
(
APIView
):
...
...
@@ -21,7 +20,7 @@ class InstanceList(APIView):
data
=
request
.
data
template
=
InstanceTemplate
.
objects
.
get
(
pk
=
data
[
"template"
])
flavor
=
Flavor
.
objects
.
get
(
pk
=
data
[
"flavor"
])
lease
=
l
ease
.
objects
.
get
(
pk
=
data
[
"lease"
])
lease
=
L
ease
.
objects
.
get
(
pk
=
data
[
"lease"
])
newInstance
=
Instance
.
create_instance_from_template
(
params
=
{
"name"
:
data
[
"name"
],
...
...
interface_openstack
@
7b264753
Subproject commit
068a7155cd97ba5c6d0a06b9c0a6274b22fe8d3c
Subproject commit
7b2647531e54da62fcf1db4c61a5e0530e977da4
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