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:
parent
f22fa14234
commit
b6c45d837e
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue