Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
Xavier Thompson
slapos.toolbox
Commits
3e9fa4ff
Commit
3e9fa4ff
authored
Oct 23, 2013
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slaprunner: deletion of useless bloc try/except
parent
d1e6e4cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
slapos/runner/__init__.py
slapos/runner/__init__.py
+9
-14
No files found.
slapos/runner/__init__.py
View file @
3e9fa4ff
...
@@ -69,20 +69,15 @@ def run():
...
@@ -69,20 +69,15 @@ def run():
"Run default configuration."
"Run default configuration."
usage
=
"usage: %s [options] CONFIGURATION_FILE"
%
sys
.
argv
[
0
]
usage
=
"usage: %s [options] CONFIGURATION_FILE"
%
sys
.
argv
[
0
]
try
:
# Parse arguments
# Parse arguments
config
=
Config
()
config
=
Config
()
config
.
setConfig
()
config
.
setConfig
()
if
os
.
getuid
()
==
0
:
if
os
.
getuid
()
==
0
:
# avoid mistakes (mainly in development mode)
# avoid mistakes (mainly in development mode)
raise
Exception
(
'Do not run SlapRunner as root.'
)
raise
Exception
(
'Do not run SlapRunner as root.'
)
serve
(
config
)
serve
(
config
)
return_code
=
0
except
:
e
=
sys
.
exc_info
()[
0
]
sys
.
exit
(
e
)
def
serve
(
config
):
def
serve
(
config
):
from
werkzeug.contrib.fixers
import
ProxyFix
from
werkzeug.contrib.fixers
import
ProxyFix
...
...
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