diff --git a/lib/tasks_private/database_types.rake b/lib/tasks_private/database_types.rake index 2c8460a8..eac3b37b 100644 --- a/lib/tasks_private/database_types.rake +++ b/lib/tasks_private/database_types.rake @@ -8,13 +8,9 @@ namespace 'aws:extract' do end results = instances.map do |instance| - network_performance = if instance["networkPerformance"].nil? - nil - elsif instance["networkPerformance"].match?(/(\d+ Gigabit)/) - :very_high - else - instance["networkPerformance"].downcase.tr(' ', '_').to_sym - end + network_performance = instance["networkPerformance"] + + network_performance = network_performance.match?(/(\d+ [Gg]igabit)|(\d+ Gbps)|(\d+ Mbps)/) ? :very_high : network_performance.downcase.tr(' ', '_').to_sym if network_performance result = { :name => instance["instanceType"],