Message ID | 20130903114126.26788.90819.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'lava_scheduler_app/utils.py' --- lava_scheduler_app/utils.py 2013-08-28 09:34:40 +0000 +++ lava_scheduler_app/utils.py 2013-09-02 16:22:57 +0000 @@ -113,5 +113,8 @@ for device_group in job_data['device_group']: device_type = device_group['device_type'] count = device_group['count'] - requested_devices[device_type] = count + if device_type in requested_devices: + requested_devices[device_type] += count + else: + requested_devices[device_type] = count return requested_devices