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

service attribute conflicts with the service defined in the parent

This commit is contained in:
Evan Petrie 2013-11-04 18:12:16 -08:00
parent f22fa14234
commit b6c45d837e

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