features for voms authentication
[snf-occi] / snfOCCI / registry.py
index 9bacb97..e6d09d2 100644 (file)
@@ -2,6 +2,8 @@ from kamaki.clients.compute import ComputeClient
 from kamaki.clients.cyclades import CycladesClient
 from kamaki.cli.config  import Config
 
+from snfOCCI.config import SERVER_CONFIG
+
 from occi import registry
 from occi.core_model import Mixin
 from occi.backend import MixinBackend
@@ -15,3 +17,7 @@ class snfRegistry(registry.NonePersistentRegistry):
         resource.identifier = key
 
         super(snfRegistry, self).add_resource(key, resource, extras)
+
+    def set_hostname(self, hostname):
+        hostname = "https://" + SERVER_CONFIG['hostname'] + ":" + str(SERVER_CONFIG['port']) 
+        super(snfRegistry, self).set_hostname(hostname)
\ No newline at end of file