From: John Giannelos Date: Thu, 19 Apr 2012 14:45:10 +0000 (+0300) Subject: Succesfully created first VM / no input checking X-Git-Url: https://code.grnet.gr/git/snf-occi/commitdiff_plain/8fbffa6baa923eb052433c52a9628e484fbc1cde Succesfully created first VM / no input checking --- diff --git a/snf-occi-server.py b/snf-occi-server.py index cdf0776..67f0998 100755 --- a/snf-occi-server.py +++ b/snf-occi-server.py @@ -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)