diff options
| author | Josh Kearney <josh@jk0.org> | 2011-09-21 18:27:23 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-09-21 18:27:23 +0000 |
| commit | 14068bc8f748ee3bee3c5b86ac19cd21b0ff8b67 (patch) | |
| tree | c0d87fd5a575ef80227ccd35e75e73f9c74827ba /nova/utils.py | |
| parent | 7e3bebbe8e911851a7398b8d5ad81afb421dfd62 (diff) | |
| parent | 10589faa5fbde09689641d5e64ddd41a341eaade (diff) | |
| download | nova-14068bc8f748ee3bee3c5b86ac19cd21b0ff8b67.tar.gz nova-14068bc8f748ee3bee3c5b86ac19cd21b0ff8b67.tar.xz nova-14068bc8f748ee3bee3c5b86ac19cd21b0ff8b67.zip | |
Adds an 'alternate' link to image views per 3.10 and 3.11 of http://docs.openstack.org/cactus/openstack-compute/developer/openstack-compute-api-1.1/content/LinksReferences.html
Diffstat (limited to 'nova/utils.py')
| -rw-r--r-- | nova/utils.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nova/utils.py b/nova/utils.py index 81157a4cd..57c93d9d0 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -910,3 +910,10 @@ def convert_to_list_dict(lst, label): if not isinstance(lst, list): lst = [lst] return [{label: x} for x in lst] + + +def generate_glance_url(): + """Generate the URL to glance.""" + # TODO(jk0): This will eventually need to take SSL into consideration + # when supported in glance. + return "http://%s:%d" % (FLAGS.glance_host, FLAGS.glance_port) |
