amazon-pricing 0.1.41 → 0.1.42

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjUzMDA0NDJhZWY5NjllNWI5ZTdmNmQyMjM5ZDY0ZDViOTM2NmMzMQ==
4
+ NTg3ZDU5YmZjNzkxZGJiNjI0MDgwYWU2OGE3NmY5NTlmYjcxMGQwOQ==
5
5
  data.tar.gz: !binary |-
6
- ODJjYWM0M2NjMjY2NjIyNmQyMjUwZWQzZWE2YWM4Y2E4ZDEzOTIxNw==
6
+ YTAwNDUyMDExOTM3MWNlYjZmMTU3MTNmYjFkMzM1ZTJkZTBhNTdjMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2I4ZjIxMTA3YTA4OGRiZTdhMDYyNDEwNTJlMDA5YzdmMjNiYTBlODUzZDNh
10
- ZDJlYzIyZjEzNDU5OTFlNTNlZTM1Nzk0MGNhN2E0MDU1ZDM5OGZhNTA4ZTRi
11
- ZmNlMTllNTEzZGQ0YmVhZGYyZjJmZjZmYjJmZGJkOTdmNWVjNzc=
9
+ MzQxZGFkOGUzYWQ4YTVhZWUyZDk3MTAyZmI3MzQyZTVmNzRmNTQ2OWExYjIz
10
+ ODEwNzYzZmJlOWRhZjQwMGEwOTlkNmMzODI5ZTdmNDBhYTNlYWVjNzE3ODNk
11
+ MmIxYjQ0NTg0OGY2NzQ1YmVjNjZkMDRkNjlhOGZhMTAzN2IxM2U=
12
12
  data.tar.gz: !binary |-
13
- MjYzOWNiNjE0N2Q5NjRkYjVkYjM2ZmU2NjA4NDA4ZTBjYjQzNWQzYWRmYWNi
14
- NTBmNGY1OTYxZDNjOGFjZGUxOWM2YTQ3YzVjZjg1NTU2MzE1ZDZkZmM2NzE2
15
- ZjBjNWZhN2EzZGFlMmIyNzQ5ZmRlM2QxMTE5Yzc3MDYwYzk5MWM=
13
+ MDBjYzkyZTA3MWM4ODdlYjFmZTk1YmJkNWIyODNmMTcxOTdhMTBlN2MyY2Qx
14
+ NzNhOGYxNzY3MTcxZGRlNjZjOGM4NjNlNmJhN2FmMDIzYjk2ODkzNjNlMzU4
15
+ MjI0OTAxZTQ2MzIxODQ5NDE0NjRhZDRhZjJjYWE2MDAyNzQ0YWQ=
@@ -8,5 +8,5 @@
8
8
  # Home:: http://github.com/CloudHealth/amazon-pricing
9
9
  #++
10
10
  module AwsPricing
11
- VERSION = '0.1.41'
11
+ VERSION = '0.1.42'
12
12
  end
@@ -80,8 +80,12 @@ module AwsPricing
80
80
  def create_ondemand_instances(db_type, res_type, is_multi_az, is_byol, rows)
81
81
  @_regions.values.each do |region|
82
82
  # Skip header row
83
- rows.slice(1, rows.size).each do |row|
83
+ rows.each do |row|
84
84
  api_name = row[0]
85
+ unless api_name.include?("db.")
86
+ $stderr.puts "Skipping row containing non-db type: #{api_name}"
87
+ next
88
+ end
85
89
  instance_type = region.get_rds_instance_type(api_name)
86
90
  if instance_type.nil?
87
91
  api_name, name = RdsInstanceType.get_name(nil, row[0], false)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amazon-pricing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.41
4
+ version: 0.1.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Kinsella