From b6c45d837e535df38069db8040eb80d5588bdb23 Mon Sep 17 00:00:00 2001 From: Evan Petrie Date: Mon, 4 Nov 2013 18:12:16 -0800 Subject: [PATCH] service attribute conflicts with the service defined in the parent --- lib/fog/openstack/models/compute/host.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fog/openstack/models/compute/host.rb b/lib/fog/openstack/models/compute/host.rb index 09448799d..ce1ef5d7d 100644 --- a/lib/fog/openstack/models/compute/host.rb +++ b/lib/fog/openstack/models/compute/host.rb @@ -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