Commit 30135b30 by Chif Gergő

Fix linter errors

parent d1d3fba5
Pipeline #766 failed with stages
in 17 seconds
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 = lease.objects.get(pk=data["lease"])
lease = Lease.objects.get(pk=data["lease"])
newInstance = Instance.create_instance_from_template(
params={"name": data["name"],
......
Subproject commit 068a7155cd97ba5c6d0a06b9c0a6274b22fe8d3c
Subproject commit 7b2647531e54da62fcf1db4c61a5e0530e977da4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment