osbuild-image-info: use .splitlines() instead of .split("\n")
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
35dda557ab
commit
bf64127c26
1 changed files with 1 additions and 1 deletions
|
|
@ -2530,7 +2530,7 @@ def lvm_lvs_for_vg(vg_name: str) -> List[str]:
|
|||
if res.returncode != 0:
|
||||
raise RuntimeError(res.stderr.strip())
|
||||
|
||||
return [lv.strip() for lv in res.stdout.strip().split("\n")]
|
||||
return [lv.strip() for lv in res.stdout.strip().splitlines()]
|
||||
|
||||
|
||||
def discover_lvm(dev: str, parent: devices.Device, devmgr: OSBuildDeviceManager):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue