test-kitchen/kitchen-ec2 — pull request #46 by anl (2014-05-01 13:25:01+00:00)
Title: Don't create multiple instances if "kitchen create" is called multiple t...

...imes.

Calling "kitchen create" multiple times in succession will result in multiple identical instances being launched, with test-kitchen losing track of the earlier instance(s):

```
$ bundle exec kitchen create
-----> Starting Kitchen (v1.2.1)
-----> Creating ...
EC2 instance created.
................................ (server ready)
Waiting for ec2-54-188-228-88.us-west-2.compute.amazonaws.com:22...
Waiting for ec2-54-188-228-88.us-west-2.compute.amazonaws.com:22...
Waiting for ec2-54-188-228-88.us-west-2.compute.amazonaws.com:22...
(ssh ready)\n
Finished creating (0m58.64s).
-----> Kitchen is finished. (0m59.74s)
$ bundle exec kitchen create
-----> Starting Kitchen (v1.2.1)
-----> Creating ...
EC2 instance created.
........................... (server ready)
Waiting for ec2-54-212-23-228.us-west-2.compute.amazonaws.com:22...
Waiting for ec2-54-212-23-228.us-west-2.compute.amazonaws.com:22...
(ssh ready)\n
Finished creating (0m49.24s).
-----> Kitchen is finished. (0m50.36s)
```

This one-liner should fix that - I first noticed this when writing kitchen-gce, but forgot to send a pull request until now (sorry!); thanks for considering this.