Skip to content

Commit cc27405

Browse files
author
Neil Greenwood
authored
Merge pull request #10 from neil-greenwood/master
Catch errors for malformed instance IDs too.
2 parents 874e3a0 + f9aed9c commit cc27405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handlers/other/ec2-cleanup.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def ec2_node_should_be_deleted?
215215
# Return true is instance state and instance reason is valid
216216
instance_states.include?(instance_state) && instance_reasons.include?(instance_state_reason)
217217
end
218-
rescue Aws::EC2::Errors::InvalidInstanceIDNotFound
218+
rescue Aws::EC2::Errors::InvalidInstanceIDNotFound, Aws::EC2::Errors::InvalidInstanceIDMalformed
219219
true
220220
end
221221
end

0 commit comments

Comments
 (0)