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

[openstack|compute] Use attribute accessor for nics

This commit is contained in:
Ferran Rodenas 2013-03-15 11:37:24 +01:00
parent a70615cfe4
commit 6c36ac14bc

View file

@ -40,7 +40,7 @@ module Fog
attribute :os_ext_sts_vm_state, :aliases => 'OS-EXT-STS:vm_state'
attr_reader :password
attr_writer :image_ref, :flavor_ref, :os_scheduler_hints
attr_writer :image_ref, :flavor_ref, :nics, :os_scheduler_hints
def initialize(attributes={})
@ -239,10 +239,6 @@ module Fog
@max_count = new_max_count
end
def nics=(new_nics)
@nics = new_nics
end
def networks
service.networks(:server => self)
end