Move device after options in lsblk command (#2670)

This commit is contained in:
codefiles 2024-09-06 19:26:27 -04:00 committed by GitHub
parent 6a2a204f18
commit 876d155be9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -1431,15 +1431,15 @@ def _fetch_lsblk_info(
fields = [_clean_field(f, CleanType.Lsblk) for f in LsblkInfo.fields()]
cmd = ['lsblk', '--json', '--bytes', '--output', '+' + ','.join(fields)]
if dev_path:
cmd.append(str(dev_path))
if reverse:
cmd.append('--inverse')
if full_dev_path:
cmd.append('--paths')
if dev_path:
cmd.append(str(dev_path))
try:
result = SysCommand(cmd).decode()
except SysCallError as err: