mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
more changes to ensure networkInterfaces is referenced as a plural, which is what the API is expecting
This commit is contained in:
parent
e55bf986f6
commit
99ced673b7
1 changed files with 5 additions and 5 deletions
|
@ -9,8 +9,8 @@ module Fog
|
||||||
@block_device_mapping = {}
|
@block_device_mapping = {}
|
||||||
@network_interfaces = {}
|
@network_interfaces = {}
|
||||||
@context = []
|
@context = []
|
||||||
@contexts = ['networkInterface', 'blockDeviceMapping', 'groupSet', 'placement', 'productCodes']
|
@contexts = ['networkInterfaces', 'blockDeviceMapping', 'groupSet', 'placement', 'productCodes']
|
||||||
@instance = { 'networkInterface' => [], 'blockDeviceMapping' => [], 'instanceState' => {}, 'monitoring' => {}, 'placement' => {}, 'productCodes' => [] }
|
@instance = { 'networkInterfaces' => [], 'blockDeviceMapping' => [], 'instanceState' => {}, 'monitoring' => {}, 'placement' => {}, 'productCodes' => [] }
|
||||||
@response = { 'groupSet' => [], 'instancesSet' => [] }
|
@response = { 'groupSet' => [], 'instancesSet' => [] }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -60,12 +60,12 @@ module Fog
|
||||||
when 'blockDeviceMapping'
|
when 'blockDeviceMapping'
|
||||||
@instance['blockDeviceMapping'] << @block_device_mapping
|
@instance['blockDeviceMapping'] << @block_device_mapping
|
||||||
@block_device_mapping = {}
|
@block_device_mapping = {}
|
||||||
when 'networkInterface'
|
when 'networkInterfaces'
|
||||||
@instance['networkInterface'] << @network_interfaces
|
@instance['networkInterfaces'] << @network_interfaces
|
||||||
@network_interfaces = {}
|
@network_interfaces = {}
|
||||||
when nil
|
when nil
|
||||||
@response['instancesSet'] << @instance
|
@response['instancesSet'] << @instance
|
||||||
@instance = { 'networkInterface' => [], 'blockDeviceMapping' => [], 'instanceState' => {}, 'monitoring' => {}, 'placement' => {}, 'productCodes' => [] }
|
@instance = { 'networkInterfaces' => [], 'blockDeviceMapping' => [], 'instanceState' => {}, 'monitoring' => {}, 'placement' => {}, 'productCodes' => [] }
|
||||||
end
|
end
|
||||||
when 'launchTime'
|
when 'launchTime'
|
||||||
@instance[name] = Time.parse(value)
|
@instance[name] = Time.parse(value)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue