From 8fbffa6baa923eb052433c52a9628e484fbc1cde Mon Sep 17 00:00:00 2001 From: John Giannelos Date: Thu, 19 Apr 2012 17:45:10 +0300 Subject: [PATCH] Succesfully created first VM / no input checking --- snf-occi-server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 1.7.10.4