Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
16
Merge Requests
16
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
a29461e9
Commit
a29461e9
authored
Oct 17, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pylint
parent
e611771a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
slapos/entry.py
slapos/entry.py
+4
-2
No files found.
slapos/entry.py
View file @
a29461e9
...
...
@@ -48,7 +48,7 @@ class EntryPointNotImplementedError(NotImplementedError):
def
__init__
(
self
,
*
args
,
**
kw_args
):
NotImplementedError
.
__init__
(
self
,
*
args
,
**
kw_args
)
def
checkSlaposCfg
():
def
checkSlaposCfg
():
"""
Check if a slapos configuration file was given as a argument.
If a slapos configuration file is given it return True else False
...
...
@@ -80,12 +80,14 @@ def checkOption(option):
sys
.
argv
=
sys
.
argv
+
option
[
1
:]
return
True
def
call
(
fun
,
config
=
False
,
option
=
[]
):
def
call
(
fun
,
config
=
False
,
option
=
None
):
"""
Add missing options to sys.argv
Add config if asked and it is missing
Call function fun
"""
if
option
is
None
:
option
=
[]
for
element
in
option
:
checkOption
(
element
)
if
config
:
...
...
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