Message ID | 20130723113131.19308.69129.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'lava_dispatcher/config.py' --- lava_dispatcher/config.py 2013-07-16 16:07:45 +0000 +++ lava_dispatcher/config.py 2013-07-22 21:18:32 +0000 @@ -308,8 +308,9 @@ devices_dir = os.path.join(config_dir, 'devices') if os.path.isdir(devices_dir): for d in os.listdir(devices_dir): - d = os.path.splitext(d)[0] - devices.append(get_device_config(d)) + if d.endswith('.conf'): + d = os.path.splitext(d)[0] + devices.append(get_device_config(d)) return devices