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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
16394b7c
authored
Jun 27, 2019
by
Belákovics Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using data from frontend
parent
2db0bd2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
recircle/instance/views.py
+5
-5
recircle/recircle/settings.py
+1
-1
No files found.
recircle/instance/views.py
View file @
16394b7c
...
@@ -26,13 +26,13 @@ class InstanceList(APIView):
...
@@ -26,13 +26,13 @@ class InstanceList(APIView):
networks
=
[{
"uuid"
:
"c03d0d4b-413e-4cc6-9ebe-c0b5ca0dac3a"
}]
networks
=
[{
"uuid"
:
"c03d0d4b-413e-4cc6-9ebe-c0b5ca0dac3a"
}]
newBackendInstance
=
interface
.
create_vm_from_template
(
"Integration test vm 2"
,
imageId
,
flavorId
,
networks
)
newBackendInstance
=
interface
.
create_vm_from_template
(
"Integration test vm 2"
,
imageId
,
flavorId
,
networks
)
newInstance
=
Instance
(
newInstance
=
Instance
(
name
=
"Integration test"
,
name
=
data
[
"name"
],
remote_id
=
newBackendInstance
.
id
,
remote_id
=
newBackendInstance
.
id
,
description
=
"Bütyök bála kapitány"
,
description
=
data
[
"description"
]
,
access_method
=
"ssh"
,
access_method
=
"ssh"
,
system
=
"cirros"
,
system
=
data
[
"system"
]
,
password
=
"12345678"
,
password
=
"12345678"
,
lease
=
"project"
,
lease
=
data
[
"lease"
]
,
time_of_suspend
=
datetime
.
datetime
.
now
(),
time_of_suspend
=
datetime
.
datetime
.
now
(),
time_of_delete
=
datetime
.
datetime
.
now
(),
time_of_delete
=
datetime
.
datetime
.
now
(),
deleted
=
False
deleted
=
False
...
...
recircle/recircle/settings.py
View file @
16394b7c
...
@@ -165,5 +165,5 @@ LEASE_TYPES = [
...
@@ -165,5 +165,5 @@ LEASE_TYPES = [
# CORS config for development version only
# CORS config for development version only
CORS_ORIGIN_WHITELIST
=
(
CORS_ORIGIN_WHITELIST
=
(
'localhost:3000'
,
'
http://
localhost:3000'
,
)
)
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