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
01b69ec5
Commit
01b69ec5
authored
17 years ago
by
Michael Hanselmann
Browse files
Options
Downloads
Patches
Plain Diff
Code style fixes for burnin.
Reviewed-by: iustinp
parent
25d659a5
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/burnin
+27
-1
27 additions, 1 deletion
tools/burnin
with
27 additions
and
1 deletion
tools/burnin
+
27
−
1
View file @
01b69ec5
#!/usr/bin/python
#
"""
Burnin program
"""
# Copyright (C) 2006, 2007 Google Inc.
#
# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
"""
Burnin program
"""
import
sys
import
optparse
...
...
@@ -16,8 +36,10 @@ from ganeti import logger
from
ganeti
import
errors
from
ganeti
import
utils
USAGE
=
(
"
\t
burnin -o OS_NAME [options...] instance_name ...
"
)
def
Usage
():
"""
Shows program usage information and exits the program.
"""
...
...
@@ -25,12 +47,14 @@ def Usage():
print
>>
sys
.
stderr
,
USAGE
sys
.
exit
(
2
)
def
Log
(
msg
):
"""
Simple function that prints out its argument.
"""
print
msg
class
Burner
(
object
):
"""
Burner class.
"""
...
...
@@ -294,6 +318,7 @@ class Burner(object):
return
0
def
main
():
"""
Main function
"""
...
...
@@ -310,5 +335,6 @@ def main():
utils
.
LockCleanup
()
return
retval
if
__name__
==
"
__main__
"
:
main
()
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