[PATCH] has_key uses parens not square brackets.

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

 



---
 storage/devicetree.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 12d4925..520381f 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1781,7 +1781,7 @@ class DeviceTree(object):
         for d in devices:
             serial = udev_device_get_serial(d)
             if (not udev_device_is_disk(d)) or \
-                    (not d.has_key['ID_SERIAL_SHORT']):
+                    (not d.has_key('ID_SERIAL_SHORT')):
                 non_disk_devices.setdefault(serial, [])
                 non_disk_devices[serial].append(d)
                 log.info("adding %s to non_disk_device list" % (d['name'],))
-- 
1.6.2.5

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux