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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos.toolbox
Commits
c6c37da3
Commit
c6c37da3
authored
Nov 27, 2021
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove useless pass statements
parent
ca3341d5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
8 deletions
+0
-8
slapos/agent/agent.py
slapos/agent/agent.py
+0
-2
slapos/monitor/monitor.py
slapos/monitor/monitor.py
+0
-3
slapos/monitor/monitor_config_write.py
slapos/monitor/monitor_config_write.py
+0
-1
slapos/resiliencytest/suites/erp5.py
slapos/resiliencytest/suites/erp5.py
+0
-1
slapos/test/promise/plugin/test_check_certificate.py
slapos/test/promise/plugin/test_check_certificate.py
+0
-1
No files found.
slapos/agent/agent.py
View file @
c6c37da3
...
...
@@ -421,7 +421,6 @@ def main():
# This exception is ignored because we cannot
# Teardown if SR URL do not exist.
logger
.
exception
(
'Fail and not found'
)
pass
except
Exception
:
logger
.
exception
(
'teardown failed, human assistance needed for cleanup'
)
raise
...
...
@@ -441,7 +440,6 @@ def main():
# This exception is ignored because we cannot
# Teardown if SR URL do not exist.
logger
.
exception
(
'Fail and not found'
)
pass
except
Exception
:
logger
.
exception
(
'teardown failed, human assistance needed for cleanup'
)
raise
...
...
slapos/monitor/monitor.py
View file @
c6c37da3
...
...
@@ -145,7 +145,6 @@ class Monitoring(object):
param_value
=
cfile
.
read
()
except
OSError
as
e
:
print
(
'Cannot read file %s, Error is: %s'
%
(
config_list
[
2
],
e
))
pass
else
:
param_value
=
""
parameter
=
dict
(
...
...
@@ -192,7 +191,6 @@ class Monitoring(object):
configuration_list
.
append
(
parameter
)
except
OSError
as
e
:
print
(
'Cannot read file at %s, Error is: %s'
%
(
old_cors_file
,
e
))
pass
return
configuration_list
def
createSymlinksFromConfig
(
self
,
destination_folder
,
source_path_list
,
name
=
""
):
...
...
@@ -281,7 +279,6 @@ class Monitoring(object):
pfile
.
write
(
'%s = %s
\
n
'
%
(
parameter
[
'key'
],
parameter
[
'value'
]))
except
OSError
as
e
:
print
(
"Error failed to create file %s"
%
self
.
parameter_cfg_file
)
pass
def
generateOpmlFile
(
self
,
feed_url_list
,
output_file
):
...
...
slapos/monitor/monitor_config_write.py
View file @
c6c37da3
...
...
@@ -160,7 +160,6 @@ class MonitorConfigWrite(object):
pfile
.
write
(
'%s = %s
\
n
'
%
(
parameter
[
'key'
],
parameter
[
'value'
]))
except
OSError
as
e
:
print
(
"Error failed to create file %s"
%
self
.
output_cfg_file
)
pass
return
result_dict
...
...
slapos/resiliencytest/suites/erp5.py
View file @
c6c37da3
...
...
@@ -216,7 +216,6 @@ class ERP5TestSuite(SlaprunnerTestSuite):
break
except
Exception
:
self
.
logger
.
info
(
"Fail to connect to erp5.... wait a bit longer"
)
pass
self
.
data
=
self
.
_createRandomERP5Document
()
...
...
slapos/test/promise/plugin/test_check_certificate.py
View file @
c6c37da3
...
...
@@ -240,7 +240,6 @@ class TestCheckCertificate(TestPromisePluginMixin):
class
TestCheckCertificateSameFile
(
TestCheckCertificate
):
same_file
=
True
pass
if
__name__
==
'__main__'
:
...
...
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