1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

gpupdate-setup.is_unit_enabled(): Fixed stdout check

This commit is contained in:
Игорь Чудов 2020-08-20 18:28:30 +04:00
parent 103110bdef
commit 57607d1311
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -120,7 +120,7 @@ def is_unit_enabled(unit_name, unit_global=False):
rc = value[0]
result = []
try:
result = value[1][0]
result = value[1].replace('\n', '')
except IndexError as exc:
return False