ansible/ansible — pull request #6878 by sayap (2014-04-07 07:23:54+00:00)
Title: ec2: Fix bug with running/stopped state and wait=yes.

If `get_all_instances` returns multiple reservations, the old wait loop only
dealt with the first reservation. Thus, the wait loop may end before all
instances get to be running/stopped.

Also clean up the code a little.