Succesfully created first VM / no input checking
authorJohn Giannelos <johngiannelos@gmail.com>
Thu, 19 Apr 2012 14:45:10 +0000 (17:45 +0300)
committerJohn Giannelos <johngiannelos@gmail.com>
Thu, 19 Apr 2012 14:45:10 +0000 (17:45 +0300)
snf-occi-server.py

index cdf0776..67f0998 100755 (executable)
@@ -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)