[virt-tools-list] [PATCH] Remove formatting character for empty string
Guido Günther
agx at sigxcpu.org
Thu Aug 11 18:26:59 UTC 2011
Avoids printing '%s' as seen when trying to create a new vm in
virt-manager with an empty hostname.
---
virtinst/_util.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/virtinst/_util.py b/virtinst/_util.py
index e7e3e7f..d7edd94 100644
--- a/virtinst/_util.py
+++ b/virtinst/_util.py
@@ -152,7 +152,7 @@ def validate_uuid(val):
def validate_name(name_type, val, lencheck=False):
if type(val) is not str or len(val) == 0:
- raise ValueError(_("%s name must be a string"))
+ raise ValueError(_("name must be a string"))
if lencheck:
if len(val) > 50:
--
1.7.5.4
More information about the virt-tools-list
mailing list