Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.package
Commits
9b7bf05d
Commit
9b7bf05d
authored
Sep 05, 2012
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added time for slapupdate logs, clean code
parent
f3ea6a7f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
slapprepare/slapprepare/slapupdate.py
slapprepare/slapprepare/slapupdate.py
+1
-6
No files found.
slapprepare/slapprepare/slapupdate.py
View file @
9b7bf05d
...
@@ -37,15 +37,13 @@ import os
...
@@ -37,15 +37,13 @@ import os
import
subprocess
as
sub
import
subprocess
as
sub
import
sys
import
sys
import
tempfile
import
tempfile
import
urllib2
# create console handler and set level to debug
# create console handler and set level to debug
ch
=
logging
.
StreamHandler
()
ch
=
logging
.
StreamHandler
()
ch
.
setLevel
(
logging
.
WARNING
)
ch
.
setLevel
(
logging
.
WARNING
)
# create formatter
# create formatter
formatter
=
logging
.
Formatter
(
"%(levelname)s - %(name)s - %(message)s"
)
formatter
=
logging
.
Formatter
(
"%(
asctime)s - %(
levelname)s - %(name)s - %(message)s"
)
# add formatter to ch
# add formatter to ch
ch
.
setFormatter
(
formatter
)
ch
.
setFormatter
(
formatter
)
...
@@ -60,9 +58,6 @@ class Parser(OptionParser):
...
@@ -60,9 +58,6 @@ class Parser(OptionParser):
"""
"""
OptionParser
.
__init__
(
self
,
usage
=
usage
,
version
=
version
,
OptionParser
.
__init__
(
self
,
usage
=
usage
,
version
=
version
,
option_list
=
[
option_list
=
[
Option
(
"--server-url"
,
default
=
'https://perso.telecom-paristech.fr/~leninivi/update-info'
,
help
=
"status file url"
),
Option
(
"--slapos-configuration"
,
Option
(
"--slapos-configuration"
,
default
=
'/etc/opt/slapos/slapos.cfg'
,
default
=
'/etc/opt/slapos/slapos.cfg'
,
help
=
"Path to slapos configuration file"
),
help
=
"Path to slapos configuration file"
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment