Commit 1f9611b1 authored by Alexander Schreiber's avatar Alexander Schreiber
Browse files

Fix use of ToStderr in gnt-cluster

Reviewed-by: imsnah
parent d8353c3a
......@@ -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],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment