Commit 16394b7c by Belákovics Ádám

Using data from frontend

parent 2db0bd2a
......@@ -26,13 +26,13 @@ class InstanceList(APIView):
networks = [{"uuid": "c03d0d4b-413e-4cc6-9ebe-c0b5ca0dac3a"}]
newBackendInstance = interface.create_vm_from_template("Integration test vm 2", imageId, flavorId, networks)
newInstance = Instance(
name="Integration test",
remote_id=newBackendInstance.id,
description="Bütyök bála kapitány",
name=data["name"],
remote_id=newBackendInstance.id,
description=data["description"],
access_method="ssh",
system="cirros",
system=data["system"],
password="12345678",
lease="project",
lease=data["lease"],
time_of_suspend=datetime.datetime.now(),
time_of_delete=datetime.datetime.now(),
deleted=False
......
......@@ -165,5 +165,5 @@ LEASE_TYPES = [
# CORS config for development version only
CORS_ORIGIN_WHITELIST = (
'localhost:3000',
'http://localhost:3000',
)
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