Revision 66348f29 scripts/gnt-cluster
b/scripts/gnt-cluster | ||
---|---|---|
76 | 76 |
# check for invalid parameters |
77 | 77 |
for parameter in beparams: |
78 | 78 |
if parameter not in constants.BES_PARAMETERS: |
79 |
print "Invalid backend parameter: %s" % parameter
|
|
79 |
ToStderr("Invalid backend parameter: %s" % parameter)
|
|
80 | 80 |
return 1 |
81 | 81 |
|
82 | 82 |
# prepare beparams dict |
... | ... | |
88 | 88 |
try: |
89 | 89 |
beparams[constants.BE_VCPUS] = int(beparams[constants.BE_VCPUS]) |
90 | 90 |
except ValueError: |
91 |
print "%s must be an integer" % constants.BE_VCPUS
|
|
91 |
ToStderr("%s must be an integer" % constants.BE_VCPUS)
|
|
92 | 92 |
return 1 |
93 | 93 |
|
94 | 94 |
beparams[constants.BE_MEMORY] = utils.ParseUnit(beparams[constants.BE_MEMORY]) |
... | ... | |
103 | 103 |
|
104 | 104 |
for hv in hvlist: |
105 | 105 |
if hv not in constants.HYPER_TYPES: |
106 |
print "invalid hypervisor: %s" % hv
|
|
106 |
ToStderr("invalid hypervisor: %s" % hv)
|
|
107 | 107 |
return 1 |
108 | 108 |
|
109 | 109 |
bootstrap.InitCluster(cluster_name=args[0], |
Also available in: Unified diff