Skip to content

Commit

Permalink
Return process from run_as_root.
Browse files Browse the repository at this point in the history
  • Loading branch information
rick-masters committed Nov 27, 2023
1 parent ca2ba18 commit 4d20284
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def run(*args, **kwargs):
def run_as_root(*args, **kwargs):
"""A helper for run that invokes sudo when unprivileged"""
if os.geteuid() != 0:
run("sudo", *args, **kwargs)
return run("sudo", *args, **kwargs)
else:
run(*args, **kwargs)
return run(*args, **kwargs)

def create_disk(image, disk_type, fs_type, size):
"""Create a disk image, with a filesystem on it"""
Expand Down

0 comments on commit 4d20284

Please sign in to comment.