ansible/ansible — pull request #949 by pas256 (2012-08-28 00:09:57+00:00)
Title: Get --limit working by comparing host names instead of objects.

I am not sure if I am fixing the cause or a symptom here, but it works.

Previously, the subset code compared objects in hosts with objects in positive_subset. For me, using ec2_external_inventory.py, the objects in `hosts` did not match the objects in `positive_subset`, while the hostname was the same, the objects lived in different locations in memory, so the resulting list was empty.

By modifying the code to compare host names, --limit is doing the correct thing.

An alternative might be to ensure `positive_subset` contains the exact same objects that live in `hosts`, but I did not look into that.