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
51abbc49
authored
Nov 04, 2020
by
Belákovics Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add flavor endpoint and other fixes
parent
259b86c1
Pipeline
#1357
failed with stages
in 5 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
recircle/instance/views.py
+4
-0
recircle/interface_openstack
+1
-1
recircle/recircle/settings/base.py
+3
-3
No files found.
recircle/instance/views.py
View file @
51abbc49
...
@@ -210,6 +210,10 @@ class FlavorViewSet(ViewSet):
...
@@ -210,6 +210,10 @@ class FlavorViewSet(ViewSet):
flavors
=
Flavor
.
objects
.
all
()
flavors
=
Flavor
.
objects
.
all
()
return
Response
(
FlavorSerializer
(
flavors
,
many
=
True
)
.
data
)
return
Response
(
FlavorSerializer
(
flavors
,
many
=
True
)
.
data
)
def
retrieve
(
self
,
request
,
pk
):
flavor
=
self
.
get_object
(
pk
)
return
Response
(
FlavorSerializer
(
flavor
)
.
data
)
def
create
(
self
,
request
,
format
=
None
):
def
create
(
self
,
request
,
format
=
None
):
data
=
request
.
data
data
=
request
.
data
prior
=
1
prior
=
1
...
...
interface_openstack
@
cc7bd247
Subproject commit
1a19e4355f4af1abb49a3f6e07dc3a6c3f8bdf47
Subproject commit
cc7bd247b4457b1020c6442a6c944e1c3ba0caff
recircle/recircle/settings/base.py
View file @
51abbc49
...
@@ -246,13 +246,13 @@ CHANNEL_LAYERS = {
...
@@ -246,13 +246,13 @@ CHANNEL_LAYERS = {
'default'
:
{
'default'
:
{
'BACKEND'
:
'channels_redis.core.RedisChannelLayer'
,
'BACKEND'
:
'channels_redis.core.RedisChannelLayer'
,
'CONFIG'
:
{
'CONFIG'
:
{
"hosts"
:
[(
'
127.0.0.1
'
,
6379
)],
"hosts"
:
[(
'
redis
'
,
6379
)],
},
},
},
},
}
}
CELERY_BROKER_URL
=
'redis://
localhost
:6379'
CELERY_BROKER_URL
=
'redis://
redis
:6379'
CELERY_RESULT_BACKEND
=
"redis://
localhost
:6379"
CELERY_RESULT_BACKEND
=
"redis://
redis
:6379"
ASGI_APPLICATION
=
"recircle.routing.application"
ASGI_APPLICATION
=
"recircle.routing.application"
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