Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
interface-openstack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
4
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
cc456c5e
authored
Apr 08, 2019
by
edems
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aiohttp server added
parent
5aee63bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletions
+23
-1
main.py
+23
-1
No files found.
main.py
View file @
cc456c5e
# This file is for testing the openstack api access
from
aiohttp
import
web
import
openstack
from
controllers.SnapshotsController
import
SnapshotsController
from
controllers.StoragesController
import
StoragesController
from
controllers.ImagesController
import
ImagesController
CLOUD
=
'devstack-admin'
def
main
():
app
=
web
.
Application
()
os
=
openstack
.
connect
(
cloud
=
CLOUD
)
StoragesController
.
init
(
app
,
CLOUD
)
SnapshotsController
.
init
(
app
,
CLOUD
)
web
.
run_app
(
app
)
if
__name__
==
"__main__"
:
main
()
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