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
f97c7901
Commit
f97c7901
authored
17 years ago
by
Michael Hanselmann
Browse files
Options
Downloads
Patches
Plain Diff
Update copyright year, imports of cfgupgrade
Reviewed-by: iustinp
parent
283439c9
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
tools/cfgupgrade
+4
-4
4 additions, 4 deletions
tools/cfgupgrade
with
4 additions
and
4 deletions
tools/cfgupgrade
+
4
−
4
View file @
f97c7901
#!/usr/bin/python
#!/usr/bin/python
#
#
# Copyright (C) 2007 Google Inc.
# Copyright (C) 2007
, 2008
Google Inc.
#
#
# This program is free software; you can redistribute it and/or modify
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
...
@@ -37,7 +37,7 @@ import tempfile
...
@@ -37,7 +37,7 @@ import tempfile
import
simplejson
import
simplejson
from
ganeti
import
utils
from
ganeti
import
utils
from
ganeti
.cli
import
AskUser
,
FORCE_OPT
from
ganeti
import
cli
options
=
None
options
=
None
...
@@ -175,7 +175,7 @@ if __name__ == "__main__":
...
@@ -175,7 +175,7 @@ if __name__ == "__main__":
action
=
"
store_true
"
,
action
=
"
store_true
"
,
help
=
"
Try to do the conversion, but don
'
t write
"
help
=
"
Try to do the conversion, but don
'
t write
"
"
output file
"
)
"
output file
"
)
parser
.
add_option
(
FORCE_OPT
)
parser
.
add_option
(
cli
.
FORCE_OPT
)
parser
.
add_option
(
'
--verbose
'
,
dest
=
'
verbose
'
,
parser
.
add_option
(
'
--verbose
'
,
dest
=
'
verbose
'
,
action
=
"
store_true
"
,
action
=
"
store_true
"
,
help
=
"
Verbose output
"
)
help
=
"
Verbose output
"
)
...
@@ -190,7 +190,7 @@ if __name__ == "__main__":
...
@@ -190,7 +190,7 @@ if __name__ == "__main__":
if
not
options
.
force
:
if
not
options
.
force
:
usertext
=
(
"
%s MUST run on the master node. Is this the master
"
usertext
=
(
"
%s MUST run on the master node. Is this the master
"
"
node?
"
%
program
)
"
node?
"
%
program
)
if
not
AskUser
(
usertext
):
if
not
cli
.
AskUser
(
usertext
):
sys
.
exit
(
1
)
sys
.
exit
(
1
)
config
=
ReadConfig
(
cfg_file
)
config
=
ReadConfig
(
cfg_file
)
...
...
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