diff options
| author | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-03-01 19:02:26 +0000 |
|---|---|---|
| committer | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-03-01 19:02:26 +0000 |
| commit | fc0f5bdc15d41dbed489a9a4fcbc6149672065b7 (patch) | |
| tree | cf8a0a23b0abc951372a2079aefe0e8ee4d202f6 /nova/exception.py | |
| parent | b9ad66139f1e1adb079c5c5cb0d41979bd879669 (diff) | |
| download | nova-fc0f5bdc15d41dbed489a9a4fcbc6149672065b7.tar.gz nova-fc0f5bdc15d41dbed489a9a4fcbc6149672065b7.tar.xz nova-fc0f5bdc15d41dbed489a9a4fcbc6149672065b7.zip | |
Add missing format string type on some exception messages
Change-Id: I21929456eeb142cb5e28899bbf308b47192adf41
Diffstat (limited to 'nova/exception.py')
| -rw-r--r-- | nova/exception.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/nova/exception.py b/nova/exception.py index 4de0f65d1..3caab9465 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -417,7 +417,8 @@ class VolumeNotFound(NotFound): class SfAccountNotFound(NotFound): - message = _("Unable to locate account %(account_name) on Solidfire device") + message = _("Unable to locate account %(account_name)s on " + "Solidfire device") class VolumeNotFoundForInstance(VolumeNotFound): @@ -973,7 +974,7 @@ class AggregateHostExists(Duplicate): class DuplicateSfVolumeNames(Duplicate): - message = _("Detected more than one volume with name %(vol_name)") + message = _("Detected more than one volume with name %(vol_name)s") class VolumeTypeCreateFailed(NovaException): @@ -998,7 +999,7 @@ class SolidFireAPIDataException(SolidFireAPIException): class DuplicateVlan(Duplicate): - message = _("Detected existing vlan with id %(vlan)") + message = _("Detected existing vlan with id %(vlan)d") class InstanceNotFound(NotFound): @@ -1006,4 +1007,4 @@ class InstanceNotFound(NotFound): class InvalidInstanceIDMalformed(Invalid): - message = _("Invalid id: %(val) (expecting \"i-...\").") + message = _("Invalid id: %(val)s (expecting \"i-...\").") |
