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
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