[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [rhel6-branch] Gotta catch 'em all parted exceptions.



> diff --git a/storage/devicetree.py b/storage/devicetree.py
> index 5c213ff..c9f84cb 100644
> --- a/storage/devicetree.py
> +++ b/storage/devicetree.py
> @@ -1271,7 +1271,7 @@ class DeviceTree(object):
>                  try:
>                      partitions_paths = [p.path
>                                         for p in parted.Disk(device=parted.Device(path=path)).partitions]
> -                except (_ped.IOException, _ped.DeviceException) as e:
> +                except (_ped.IOException, _ped.DeviceException, _ped.DiskLabelException) as e:
>                      log.error("Parted error scanning partitions on %s:" % path)
>                      log.error(str(e))
>                  # slice off the "/dev/" part, lvm filter cares only about the rest

Once you have blocker-+ set, ACK.  This looks good for master too.

- Chris


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]