# File lib/fog/compute/ecloud/requests/get_ssh_key.rb, line 9 def get_ssh_key(uri) ssh_key_id = id_from_uri(uri).to_i ssh_key = self.data[:ssh_keys][ssh_key_id.to_i] if ssh_key response(:body => Fog::Ecloud.slice(ssh_key, :id, :admin_organization)) else body = "<Error message=\"Resource Not Found\" majorErrorCode=\"404\" minorErrorCode=\"ResourceNotFound\" />" response(:body => body, :expects => 200, :status => 404) end end