Skip to content

Commit

Permalink
Problem when there were RIs for Windows with SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
jros2300 committed Jun 29, 2015
1 parent fcef99b commit 01a91d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/aws_common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def get_reserved_instances(regions, account_ids)
elsif ri.product_description.include?("Windows") && !ri.product_description.include?("SQL Server")
instances[ri.reserved_instances_id][:platform] = 'Windows'
else
instances[ri.reserved_instances_id] = nil
instances.delete(ri.reserved_instances_id)
end
end
end
Expand Down Expand Up @@ -180,7 +180,7 @@ def get_mock_reserved_instances
elsif row[7].include?("Windows") && !row[7].include?("SQL Server")
instances[row[1]][:platform] = 'Windows'
else
instances[row[1]] = nil
instances.delete(row[1])
end
end
end
Expand Down

0 comments on commit 01a91d8

Please sign in to comment.