We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca2ba18 commit 4d20284Copy full SHA for 4d20284
lib/utils.py
@@ -28,9 +28,9 @@ def run(*args, **kwargs):
28
def run_as_root(*args, **kwargs):
29
"""A helper for run that invokes sudo when unprivileged"""
30
if os.geteuid() != 0:
31
- run("sudo", *args, **kwargs)
+ return run("sudo", *args, **kwargs)
32
else:
33
- run(*args, **kwargs)
+ return run(*args, **kwargs)
34
35
def create_disk(image, disk_type, fs_type, size):
36
"""Create a disk image, with a filesystem on it"""
0 commit comments