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