Fix pylint warning: 55:udev_resolve_devspec: Using possibly undefined loop variable 'dev' Notice that the code makes more sense once fixed. --- storage/udev.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/storage/udev.py b/storage/udev.py index 2d199df..bb6310b 100644 --- a/storage/udev.py +++ b/storage/udev.py @@ -52,7 +52,7 @@ def udev_resolve_devspec(devspec): del _devices if ret: - return udev_device_get_name(dev) + return udev_device_get_name(ret) def udev_get_block_devices(): udev_settle(timeout=30) -- 1.6.4 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list