Commit cc456c5e by edems

aiohttp server added

parent 5aee63bd
# 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()
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