diff options
| author | Chris Behrens <cbehrens@codestud.com> | 2011-09-21 09:00:18 +0000 |
|---|---|---|
| committer | Chris Behrens <cbehrens@codestud.com> | 2011-09-21 09:00:18 +0000 |
| commit | a63ca427e75c73611dd129bc7b5a625f6c06fa44 (patch) | |
| tree | d80bef65fe63bb45fbf201f0c0475d3d699fa045 /nova/utils.py | |
| parent | 4d0bb8730a076b44d0a37fd0770c743b834e5751 (diff) | |
| parent | d9752d46554ffa87360bfd740177b40871cfbea6 (diff) | |
| download | nova-a63ca427e75c73611dd129bc7b5a625f6c06fa44.tar.gz nova-a63ca427e75c73611dd129bc7b5a625f6c06fa44.tar.xz nova-a63ca427e75c73611dd129bc7b5a625f6c06fa44.zip | |
Merged trunk
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) |
