Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-ganeti
Commits
66348f29
Commit
66348f29
authored
16 years ago
by
Alexander Schreiber
Browse files
Options
Downloads
Patches
Plain Diff
convert remaining print statements to ToStderr in gnt-cluster
Reviewed-by: imsnah
parent
6526ddcd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/gnt-cluster
+3
-3
3 additions, 3 deletions
scripts/gnt-cluster
with
3 additions
and
3 deletions
scripts/gnt-cluster
+
3
−
3
View file @
66348f29
...
...
@@ -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
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment