sport_ngin_aws_auditor 3.11.0 → 3.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 371951220694aabe393ce1d64bd750ead6323bbe
4
- data.tar.gz: fa9cfd373c5ede8e321522359d3227e9df72de56
3
+ metadata.gz: a87a5662cac1e058dc24bd10461c438d7d67681a
4
+ data.tar.gz: 66e2e758d04513a1ea34f448a61837c11a0fc4eb
5
5
  SHA512:
6
- metadata.gz: 4332d0f1a87ba742df5a3d17e62622fc286aff652859939cca4e9f0fc77cbd293a08154b8bb7b3e44856f8d577ab19b16bce901a5251fa4bead7f22c3b3b4b34
7
- data.tar.gz: f8593e6acbf8963b9554471feba300618882ad5c64b9b800760d0cb81b394e5d4d8fd06c91c9f880e58ce259c192b890a6523584e37619a0172470801f42251c
6
+ metadata.gz: 8eaa4a8aab67724614ef8e44698982387b358b82881c489e2928d6a70f6db204dfdc7ef99aefb0d9405e55ed86bd400f0b35d57956a01f143ed44193e154dd57
7
+ data.tar.gz: 9ba84bb48f74f5ad69875ede9004696033afecb739113f49090c3b585d8f8558b458d55834e6c79ba88e800c471bd6ef7a8e2ae46c453240ee1a907677144c86
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,8 @@
1
+ #### v3.11.1
2
+ * Must merge this PR in to run the audit command correctly
3
+
4
+ > Emma Sax: Unknown User: https://github.com/sportngin/sport_ngin_aws_auditor/pull/28
5
+
1
6
  #### v3.11.0
2
7
  * Automatically ignore instances based on a regex string
3
8
 
@@ -58,7 +58,7 @@ module SportNginAwsAuditor
58
58
  def add_additional_instances_to_hash(instances_to_add, instance_hash, extra_string)
59
59
  instances_to_add.each do |instance|
60
60
  next if instance.nil?
61
- key = instance.to_s.dup << extra_string << instance.name << ")"
61
+ key = instance.to_s.dup << extra_string << (instance.name || "") << ")"
62
62
  instance_result = {}
63
63
 
64
64
  if instance_hash.has_key?(instance.to_s) && instance_hash[instance.to_s][:count] > 0
@@ -25,16 +25,19 @@ module SportNginAwsAuditor
25
25
  tag_name = options[:tag]
26
26
  end
27
27
 
28
- ignore_instances_patterns = options[:ignore_instances_patterns].split(', ') if options[:ignore_instances_patterns]
29
28
  ignore_instances_regexes = []
30
- ignore_instances_patterns.each do |r|
31
- ignore_instances_regexes << Regexp.new(r)
29
+ if options[:ignore_instances_patterns]
30
+ ignore_instances_patterns = options[:ignore_instances_patterns].split(', ')
31
+ ignore_instances_patterns.each do |r|
32
+ ignore_instances_regexes << Regexp.new(r)
33
+ end
32
34
  end
35
+
33
36
  zone_output = options[:zone_output]
34
37
 
35
38
  cycle = [["EC2Instance", options[:ec2]],
36
- ["RDSInstance", options[:rds]],
37
- ["CacheInstance", options[:cache]]]
39
+ ["RDSInstance", options[:rds]],
40
+ ["CacheInstance", options[:cache]]]
38
41
 
39
42
  if !slack
40
43
  print "Gathering info, please wait..."; print "\r"
@@ -1,3 +1,3 @@
1
1
  module SportNginAwsAuditor
2
- VERSION = "3.11.0"
2
+ VERSION = "3.11.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sport_ngin_aws_auditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.0
4
+ version: 3.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elliot Hursh
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-12-12 00:00:00.000000000 Z
13
+ date: 2016-12-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: aws-sdk