sys_patch_dict.py: Add display names

This commit is contained in:
Mykola Grymalyuk
2022-05-07 17:52:27 -06:00
parent ea4f4c4173
commit 3a6d801d80
4 changed files with 29 additions and 27 deletions

View File

@@ -227,7 +227,7 @@ class PatchSysVolume:
if "Processes" in required_patches[patch]:
for process in required_patches[patch]["Processes"]:
# Some processes need sudo, however we cannot directly call sudo in some scenarios
# Instead, call elevated funtion and strip sudo from argument
# Instead, call elevated funtion is string's boolean is True
process_array = process.split(" ")
if required_patches[patch]["Processes"][process] is True:
utilities.process_status(utilities.elevated(process_array, stdout=subprocess.PIPE, stderr=subprocess.STDOUT))