Skip to content

Commit

Permalink
refs #4832, RightAws: VPC: VpnConnection fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin committed Oct 16, 2009
1 parent 1511afc commit a088695
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/ec2/right_ec2_vpc.rb
Expand Up @@ -500,7 +500,7 @@ def tagstart(name, attributes)
when @p1, @p2
@item = { :attachments => [] }
when "#{@p1}/attachments/item",
"#{@p1}/attachments/item"
"#{@p2}/attachments/item"
@attachment = {}
end
end
Expand All @@ -512,11 +512,14 @@ def tagend(name)
when 'vpcId' then @attachment[:vpc_id] = @text
end
case full_tag_name
when "#{@p1}/state",
"#{@p2}/state"
@item[:state] = @text
when "#{@p1}/attachments/item/state",
"#{@p2}/attachments/item/state"
@attachment[:state] = @text
when "#{@p1}/attachments",
"#{@p2}/attachments"
when "#{@p1}/attachments/item",
"#{@p2}/attachments/item"
@item[:attachments] << @attachment unless @attachment.blank?
when @p1, @p2
@result << @item
Expand Down

0 comments on commit a088695

Please sign in to comment.