Skip to content

Commit 4d20284

Browse files
committed
Return process from run_as_root.
1 parent ca2ba18 commit 4d20284

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ def run(*args, **kwargs):
2828
def run_as_root(*args, **kwargs):
2929
"""A helper for run that invokes sudo when unprivileged"""
3030
if os.geteuid() != 0:
31-
run("sudo", *args, **kwargs)
31+
return run("sudo", *args, **kwargs)
3232
else:
33-
run(*args, **kwargs)
33+
return run(*args, **kwargs)
3434

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

0 commit comments

Comments
 (0)