diff options
author | Hans de Goede <hdegoede@redhat.com> | 2009-09-01 19:05:52 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2009-09-01 19:11:35 +0200 |
commit | 4aa0fb43b49b725e6d5c3adac14e25856efb994a (patch) | |
tree | 2c54843d24deba9ed389a0def74f6ab3f0926e2c /storage/udev.py | |
parent | ddaaac2f429d5e419d2a4735aa3d5cd29e4a1225 (diff) | |
download | anaconda-4aa0fb43b49b725e6d5c3adac14e25856efb994a.tar.gz anaconda-4aa0fb43b49b725e6d5c3adac14e25856efb994a.tar.xz anaconda-4aa0fb43b49b725e6d5c3adac14e25856efb994a.zip |
Fix 55:udev_resolve_devspec: Using possibly undefined loop variable 'dev'
Fix pylint warning:
55:udev_resolve_devspec: Using possibly undefined loop variable 'dev'
Notice that the code makes more sense once fixed.
Diffstat (limited to 'storage/udev.py')
-rw-r--r-- | storage/udev.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/udev.py b/storage/udev.py index 2d199df83..bb6310b7b 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) |