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
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
Jérome Perrin
slapos.core
Commits
0fbb3d11
Commit
0fbb3d11
authored
Dec 27, 2019
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mypy
parent
5cefe319
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
6 deletions
+11
-6
bootstrap.py
bootstrap.py
+1
-1
slapos/cli/prune.py
slapos/cli/prune.py
+1
-1
slapos/slap/standalone.py
slapos/slap/standalone.py
+1
-1
slapos/tests/test_configure_local.py
slapos/tests/test_configure_local.py
+2
-2
slapos/tests/test_slapformat.py
slapos/tests/test_slapformat.py
+6
-1
No files found.
bootstrap.py
View file @
0fbb3d11
...
...
@@ -159,7 +159,7 @@ except ImportError:
ez_code
=
urllib2
.
urlopen
(
options
.
setup_source
).
read
().
replace
(
'
\
r
\
n
'
,
'
\
n
'
)
ez
=
{}
exec
ez_code
in
ez
exec
(
ez_code
,
ez
)
setup_args
=
dict
(
to_dir
=
eggs_dir
,
download_delay
=
0
)
if
options
.
download_base
:
setup_args
[
'download_base'
]
=
options
.
download_base
...
...
slapos/cli/prune.py
View file @
0fbb3d11
...
...
@@ -166,7 +166,7 @@ import six
from
six.moves
import
map
try
:
PermissionError
PermissionError
# type: ignore
except
NameError
:
# make pylint happy on python2...
PermissionError
=
Exception
...
...
slapos/slap/standalone.py
View file @
0fbb3d11
...
...
@@ -41,7 +41,7 @@ from six.moves import http_client
try
:
import
subprocess32
as
subprocess
except
ImportError
:
import
subprocess
import
subprocess
# type: ignore
import
xml_marshaller
import
zope.interface
...
...
slapos/tests/test_configure_local.py
View file @
0fbb3d11
...
...
@@ -38,7 +38,7 @@ from six.moves.configparser import ConfigParser
# Disable any command to launch slapformat and supervisor
slapos
.
cli
.
configure_local
.
_runFormat
=
lambda
x
:
"Do nothing"
slapos
.
cli
.
configure_local
.
launchSupervisord
=
lambda
instance_root
,
logger
:
"Do nothing"
slapos
.
cli
.
configure_local
.
launchSupervisord
=
lambda
*
args
,
**
kw
:
"Do nothing"
class
TestConfigureLocal
(
unittest
.
TestCase
):
...
...
slapos/tests/test_slapformat.py
View file @
0fbb3d11
...
...
@@ -53,9 +53,14 @@ from .test_slapgrid import DummyManager
import
six
try
:
from
typing
import
Dict
,
Any
except
ImportError
:
pass
USER_LIST
=
[]
GROUP_LIST
=
[]
INTERFACE_DICT
=
{}
INTERFACE_DICT
=
{}
# type: Dict[str, Any]
def
file_content
(
file_path
):
...
...
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