legacy-mode #3

Merged
pedro merged 11 commits from legacy-mode into main 2024-10-15 12:17:26 +00:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit f86852e89e - Show all commits

View File

@ -41,6 +41,7 @@ def logs(f):
@logs
def exec_cmd(cmd):
print(f'workbench: INFO: running command `{cmd}`')
return os.popen(cmd).read()
@logs
@ -220,7 +221,7 @@ def gen_erase(all_disks, type_erase, user_disk=None):
@logs
def exec_smart(disk):
cmd = f'smartctl -x --json=cosviu /dev/{disk}'
cmd = f'sudo smartctl -x --json=cosviu /dev/{disk}'
return json.loads(exec_cmd(cmd))