Skip to content

Commit

Permalink
Fix ASG doctor check. (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdrakeweb authored and askreet committed Aug 17, 2016
1 parent b32eb6e commit 36c027e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/moonshot/deployment_mechanism/code_deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,12 @@ def doctor_check_code_deploy_role
end

def doctor_check_auto_scaling_resource_defined
if stack.template.resource_names.include?(@asg_logical_id)
success("Resource '#{@asg_logical_id}' exists in the CloudFormation template.") # rubocop:disable LineLength
else
critical("Resource '#{@asg_logical_id}' does not exist in the CloudFormation template!") # rubocop:disable LineLength
@asg_logical_ids.each do |asg_logical_id|
if stack.template.resource_names.include?(asg_logical_id)
success("Resource '#{asg_logical_id}' exists in the CloudFormation template.") # rubocop:disable LineLength
else
critical("Resource '#{asg_logical_id}' does not exist in the CloudFormation template!") # rubocop:disable LineLength
end
end
end
end

0 comments on commit 36c027e

Please sign in to comment.