summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2011-09-02 13:31:19 -0700
committerVishvananda Ishaya <vishvananda@gmail.com>2011-09-02 13:31:19 -0700
commit6eb28b5748a829d058fd35888f03f2ee1f26f5b5 (patch)
treee9faa70d7c6ebda2e7863cff16fbf4895dc78d55
parentfc0ee0d01320d81b5bb6cd1bc6cb23c90c8246a7 (diff)
default description to name
-rw-r--r--nova/api/openstack/create_instance_helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/create_instance_helper.py b/nova/api/openstack/create_instance_helper.py
index 289f87921..9b2928bc8 100644
--- a/nova/api/openstack/create_instance_helper.py
+++ b/nova/api/openstack/create_instance_helper.py
@@ -164,7 +164,7 @@ class CreateInstanceHelper(object):
# NOTE(vish): This is solely for compatibility with anything
# that is using the display description field.
metadata = server_dict.get('metadata') or {}
- display_description = metadata.get('description') or ''
+ display_description = metadata.get('description') or name
return (extra_values,
create_method(context,
inst_type,