tools/osbuild-image-info: fix issues reported by autopep8
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
0f99200ba1
commit
bced04b57d
1 changed files with 2 additions and 2 deletions
|
|
@ -299,7 +299,7 @@ def read_partition_table(device):
|
||||||
# 'sfdisk' prefixes the partition id with '0x' but
|
# 'sfdisk' prefixes the partition id with '0x' but
|
||||||
# 'blkid' does not; remove it to mimic 'blkid'
|
# 'blkid' does not; remove it to mimic 'blkid'
|
||||||
table_id = ptable['id'][2:]
|
table_id = ptable['id'][2:]
|
||||||
partuuid = "%.33s-%02x" % (table_id, i+1)
|
partuuid = "%.33s-%02x" % (table_id, i + 1)
|
||||||
|
|
||||||
partitions.append({
|
partitions.append({
|
||||||
"bootable": p.get("bootable", False),
|
"bootable": p.get("bootable", False),
|
||||||
|
|
@ -2458,7 +2458,7 @@ def volume_group_for_device(device: str) -> str:
|
||||||
if res.returncode == 5:
|
if res.returncode == 5:
|
||||||
if count == 10:
|
if count == 10:
|
||||||
raise RuntimeError("Could not find parent device")
|
raise RuntimeError("Could not find parent device")
|
||||||
time.sleep(1*count)
|
time.sleep(1 * count)
|
||||||
count += 1
|
count += 1
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue