Skip to content

Commit

Permalink
Modify unittests to mock objects
Browse files Browse the repository at this point in the history
  • Loading branch information
spetrosi committed Apr 18, 2024
1 parent a761ea1 commit c6abe50
Show file tree
Hide file tree
Showing 2 changed files with 224 additions and 133 deletions.
2 changes: 1 addition & 1 deletion library/bootloader_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def run_module():
for bootloader_setting in module.params["bootloader_settings"]:
_unused, kernels_info, stderr = module.run_command("grubby --info=ALL")
if "Permission denied" in stderr:
module.fail_json(msg="You must run this as sudo", **result)
module.fail_json("You must run this as sudo")

_unused, default_kernel, _unused = module.run_command("grubby --default-index")
bootloader_facts = get_facts(kernels_info, default_kernel)
Expand Down
Loading

0 comments on commit c6abe50

Please sign in to comment.