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.
Showing
Please register or sign in to comment