Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
cca16eba
Verified
Commit
cca16eba
authored
5 years ago
by
Nicolas KAROLAK
Browse files
Options
Downloads
Patches
Plain Diff
remove useless logs
parent
2ffc7926
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_fail2ban.py
+0
-2
0 additions, 2 deletions
tests/test_fail2ban.py
with
0 additions
and
2 deletions
tests/test_fail2ban.py
+
0
−
2
View file @
cca16eba
...
@@ -28,7 +28,6 @@ def get_service_state(name: str) -> tuple:
...
@@ -28,7 +28,6 @@ def get_service_state(name: str) -> tuple:
# pylint: disable=E0401
# pylint: disable=E0401
import
dbus
import
dbus
except
ImportError
:
except
ImportError
:
u
.
log
(
"
Using systemctl to get current state.
"
)
returncode
,
output
=
u
.
exec_cmd
(
returncode
,
output
=
u
.
exec_cmd
(
"
systemctl status fail2ban | grep
'
Active:
'"
,
log_output
=
False
"
systemctl status fail2ban | grep
'
Active:
'"
,
log_output
=
False
)
)
...
@@ -44,7 +43,6 @@ def get_service_state(name: str) -> tuple:
...
@@ -44,7 +43,6 @@ def get_service_state(name: str) -> tuple:
active
=
"
no
"
active
=
"
no
"
state
=
"
unknown
"
state
=
"
unknown
"
else
:
else
:
u
.
log
(
"
Using dbus to get current state.
"
)
bus
=
dbus
.
SystemBus
()
bus
=
dbus
.
SystemBus
()
systemd
=
bus
.
get_object
(
systemd
=
bus
.
get_object
(
"
org.freedesktop.systemd1
"
,
"
/org/freedesktop/systemd1
"
"
org.freedesktop.systemd1
"
,
"
/org/freedesktop/systemd1
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment