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:
parent
103110bdef
commit
57607d1311
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user