Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

reintroducing use of occi_custom_location_hostname

  • Loading branch information...
commit 90b71e315b34086c567f6ffbdfa28cad3f9a10d2 1 parent a455e53
@bhagemeier bhagemeier authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 occi_os_api/registry.py
View
6 occi_os_api/registry.py
@@ -37,6 +37,7 @@
from occi_os_api.nova_glue import storage
from occi_os_api.nova_glue import net
+from nova.flags import FLAGS
class OCCIRegistry(occi_registry.NonePersistentRegistry):
"""
@@ -56,6 +57,11 @@ def __init__(self):
self._setup_network()
+ def set_hostname(self, hostname):
+ if FLAGS.occi_custom_location_hostname:
+ hostname = FLAGS.occi_custom_location_hostname
+ super(OCCIRegistry, self).set_hostname(hostname)
+
def get_extras(self, extras):
"""
Get data which is encapsulated in the extras.
Please sign in to comment.
Something went wrong with that request. Please try again.