mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Move tag parser higher up so that the more specific use of the item element comes before the less specific.
This commit is contained in:
parent
6c929091bc
commit
9ff06a8768
1 changed files with 3 additions and 3 deletions
|
@ -72,12 +72,12 @@ module Fog
|
|||
if @in_block_device_mapping
|
||||
@instance['blockDeviceMapping'] << @block_device_mapping
|
||||
@block_device_mapping = {}
|
||||
elsif @in_instances_set
|
||||
@reservation['instancesSet'] << @instance
|
||||
@instance = { 'blockDeviceMapping' => [], 'instanceState' => {}, 'monitoring' => {}, 'placement' => {}, 'productCodes' => [], 'stateReason' => {}, 'tagSet' => {} }
|
||||
elsif @in_tag_set
|
||||
@instance['tagSet'][@tag['key']] = @tag['value']
|
||||
@tag = {}
|
||||
elsif @in_instances_set
|
||||
@reservation['instancesSet'] << @instance
|
||||
@instance = { 'blockDeviceMapping' => [], 'instanceState' => {}, 'monitoring' => {}, 'placement' => {}, 'productCodes' => [], 'stateReason' => {}, 'tagSet' => {} }
|
||||
elsif !@in_subset
|
||||
@response['reservationSet'] << @reservation
|
||||
@reservation = { 'groupSet' => [], 'instancesSet' => [] }
|
||||
|
|
Loading…
Reference in a new issue