diff options
| author | Yuriy Taraday <yorik.sar@gmail.com> | 2011-06-29 13:17:16 +0400 |
|---|---|---|
| committer | Yuriy Taraday <yorik.sar@gmail.com> | 2011-06-29 13:17:16 +0400 |
| commit | d1adc2d969570049921370450e942e349deed840 (patch) | |
| tree | 7a999d9dc88ad04e90835744c729c11ce19a1a11 | |
| parent | 8bd0296224b70e318e208a4570b4acaa599f62c8 (diff) | |
Remove unnessesary (and possibly failing) encoding.
| -rw-r--r-- | nova/compute/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py index 844192404..16ae07272 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -65,7 +65,7 @@ def generate_default_hostname(instance): else: table += '\0' deletions += c - return display_name.encode('latin-1', 'ignore').translate(table, deletions) + return display_name.translate(table, deletions) class API(base.Base): |
