Fix use of ToStderr in gnt-cluster
authorAlexander Schreiber <als@google.com>
Thu, 23 Oct 2008 15:01:51 +0000 (15:01 +0000)
committerAlexander Schreiber <als@google.com>
Thu, 23 Oct 2008 15:01:51 +0000 (15:01 +0000)
Reviewed-by: imsnah

scripts/gnt-cluster

index 38763ab..489b10f 100755 (executable)
@@ -76,7 +76,7 @@ def InitCluster(opts, args):
   # check for invalid parameters
   for parameter in beparams:
     if parameter not in constants.BES_PARAMETERS:
-      ToStderr("Invalid backend parameter: %s" % parameter)
+      ToStderr("Invalid backend parameter: %s", parameter)
       return 1
 
   # prepare beparams dict
@@ -88,7 +88,7 @@ def InitCluster(opts, args):
   try:
     beparams[constants.BE_VCPUS] = int(beparams[constants.BE_VCPUS])
   except ValueError:
-    ToStderr("%s must be an integer" % constants.BE_VCPUS)
+    ToStderr("%s must be an integer", constants.BE_VCPUS)
     return 1
 
   beparams[constants.BE_MEMORY] = utils.ParseUnit(beparams[constants.BE_MEMORY])
@@ -103,7 +103,7 @@ def InitCluster(opts, args):
 
   for hv in hvlist:
     if hv not in constants.HYPER_TYPES:
-      ToStderr("invalid hypervisor: %s" % hv)
+      ToStderr("invalid hypervisor: %s", hv)
       return 1
 
   bootstrap.InitCluster(cluster_name=args[0],