File tree 2 files changed +13
-6
lines changed
2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,19 @@ def collect
13
13
#
14
14
# describe_organization
15
15
#
16
- @client . describe_organization . each do |response |
17
- log ( response . context . operation_name )
16
+ begin
17
+ @client . describe_organization . each do |response |
18
+ log ( response . context . operation_name )
18
19
19
- struct = OpenStruct . new ( response . organization . to_h )
20
- struct . type = 'organization'
20
+ struct = OpenStruct . new ( response . organization . to_h )
21
+ struct . type = 'organization'
21
22
22
- resources . push ( struct . to_h )
23
+ resources . push ( struct . to_h )
24
+ end
25
+ rescue Aws ::Organizations ::Errors ::ServiceError => e
26
+ log_error ( e . code )
27
+
28
+ raise e unless suppressed_errors . include? ( e . code ) && !@options . quit_on_exception
23
29
end
24
30
25
31
#
@@ -66,6 +72,7 @@ def collect
66
72
def suppressed_errors
67
73
%w[
68
74
AccessDeniedException
75
+ AWSOrganizationsNotInUseException
69
76
]
70
77
end
71
78
end
Original file line number Diff line number Diff line change 1
1
module AwsRecon
2
- VERSION = "0.5.21 "
2
+ VERSION = "0.5.22 "
3
3
end
You can’t perform that action at this time.
0 commit comments