armando-migliaccio f98def216d Fix DB Duplicate error when scheduling distributed routers
The error was caused by binding the router to an agent
candidate that was already selected during the scheduling
process.

A DB lookup was also saved by passing the router object
around; this led to a minor style cleanup.

Closes-bug: #1351123

Change-Id: Ib71a0140c8a7fbd5b230609d33487f8adba252e7
2014-08-01 06:51:45 -07:00
..
2014-06-21 15:07:31 +08:00