mitchellh/packer — pull request #1304 by lflux (2014-06-30 04:52:50+00:00)
Title: Fix openstack ServerById crash

Workaround for gophercloud.ServerById crashing, fixes #1257

gophercloud.ServerById is broken in v0.1.0 - it will crash if you feed it a
non-existing server ID (see [rackspace/gophercloud #168(https://github.com/rackspace/gophercloud/issues/168))

Instead, list all servers and iterate over them. If the server id isn't found,
return "DELETED" as a state. Not perfect but it works until next version of
gophercloud is released.