1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #2363 from kuinak/master

Fix bugs in OpenStack Host
This commit is contained in:
Kyle Rames 2013-11-06 04:22:33 -08:00
commit 6bdd11e313

View file

@ -8,10 +8,11 @@ module Fog
class Host < Fog::Model
attribute :host_name
attribute :service
attribute :service_name
attribute :details
def initialize(attributes)
attributes["service_name"] = attributes.delete "service"
# Old 'connection' is renamed as service and should be used instead
prepare_service_value(attributes)
super
@ -19,6 +20,8 @@ module Fog
def details
service.get_host_details(self.host_name).body['host']
rescue Fog::Compute::OpenStack::NotFound
nil
end
end