Skip to content
Snippets Groups Projects
Commit 66348f29 authored by Alexander Schreiber's avatar Alexander Schreiber
Browse files

convert remaining print statements to ToStderr in gnt-cluster

Reviewed-by: imsnah
parent 6526ddcd
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ def InitCluster(opts, args):
# check for invalid parameters
for parameter in beparams:
if parameter not in constants.BES_PARAMETERS:
print "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:
print "%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:
print "invalid hypervisor: %s" % hv
ToStderr("invalid hypervisor: %s" % hv)
return 1
bootstrap.InitCluster(cluster_name=args[0],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment