fog/fog — pull request #1539 by tipt0e (2013-01-31 23:17:19+00:00)
Title: Fog::Compute::Ecloud::Servers create method returns 'invalidsshkey'

The error 'Error message="Ssh key id '0' is invalid." majorErrorCode="400" minorErrorCode="InvalidSshKey' is always returned from the Terremark ecloud server when attempting to create a VM from template using the ecloud module - this is due to incorrect formatting of the xml that is passed to the Terremark server. According to Terremark's eCloud API documentation, the SshKey element should be nested within the LinuxCustomization element, but it is created outside using this method.

This patch fixes the problem.