From fc0f5bdc15d41dbed489a9a4fcbc6149672065b7 Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Thu, 1 Mar 2012 19:02:26 +0000 Subject: Add missing format string type on some exception messages Change-Id: I21929456eeb142cb5e28899bbf308b47192adf41 --- nova/exception.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'nova') 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-...\").") -- cgit