Ubuntu-Solutions-Engineering/cloud-installer — pull request #84 by mikemccracken (2014-06-24 21:27:49+00:00)
Title: sort started machines list to predictably choose the lowest-numbered one

A rare case where more than one machine is started will result in get_started_machine picking an arbitrary one. If pegasus is re-run for any reason, we want it to pick the same one every time if possible.

Sorting the array by machine ID (as int) gives us the same expected behavior every time.