Commit 8fbffa6b authored by John Giannelos's avatar John Giannelos
Browse files

Succesfully created first VM / no input checking

parent f882a314
......@@ -100,6 +100,8 @@ class MyAPP(Application):
def __call__(self, environ, response):
sec_obj = {'username': 'password'}
#Refresh registry entries with current Cyclades state
snf = ComputeClient(Config())
images = snf.list_images()
......@@ -116,7 +118,8 @@ class MyAPP(Application):
FLAVOR = Mixin("http://schemas.ogf.org/occi/infrastructure#", str(flavor['name']), [RESOURCE_TEMPLATE], attributes = FLAVOR_ATTRIBUTES)
self.register_backend(FLAVOR, MixinBackend())
#TODO show only current VM instances
return self._call_occi(environ, response, security=sec_obj, foo=None)
......
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 to comment