diff options
author | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-03-04 19:06:31 +0000 |
---|---|---|
committer | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-03-04 22:10:59 +0000 |
commit | 534a894ad18c180791aaa685e97cc5264acce922 (patch) | |
tree | 8cd858c0c3d0dc4ebac4871e3024db40d3ab418f /nova/virt/disk/api.py | |
parent | 8813ab185d0b6ad1c111e7f9e346e2ce91c8113b (diff) | |
download | nova-534a894ad18c180791aaa685e97cc5264acce922.tar.gz nova-534a894ad18c180791aaa685e97cc5264acce922.tar.xz nova-534a894ad18c180791aaa685e97cc5264acce922.zip |
Only raw string literals should be used with _()
Fix a number of places where formatted strings were used with _() (causing
gettext to not match the string) or variables with _() (causing xgettext
to not extract a string)
Also, there's no value in internationalizing an empty string
Change-Id: Iac7dbe46eeaa8ddf03c2a357ecd52f69aa8678aa
Diffstat (limited to 'nova/virt/disk/api.py')
-rw-r--r-- | nova/virt/disk/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/disk/api.py b/nova/virt/disk/api.py index 8fdc59b80..a9b1067c2 100644 --- a/nova/virt/disk/api.py +++ b/nova/virt/disk/api.py @@ -162,7 +162,7 @@ class _DiskImage(object): for cls in (loop.Mount, nbd.Mount, guestfs.Mount): if cls.mode == mode: return cls - raise exception.Error(_("unknown disk image handler: %s" % mode)) + raise exception.Error(_("unknown disk image handler: %s") % mode) def mount(self): """Mount a disk image, using the object attributes. |