mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Fix unused variable systemd_enabled
Removed declared but unused variable systemd_enabled
This commit is contained in:
committed by
Matt Clay
parent
d24fbf5c3e
commit
e94140e52b
@@ -421,7 +421,6 @@ class LinuxService(Service):
|
||||
if not location.get('systemctl', False):
|
||||
return False
|
||||
|
||||
systemd_enabled = False
|
||||
# Check if init is the systemd command, using comm as cmdline could be symlink
|
||||
try:
|
||||
f = open('/proc/1/comm', 'r')
|
||||
|
||||
Reference in New Issue
Block a user