Skip to content

Commit

Permalink
Add support for NRPE and HTTP resources
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchclarkebase2 committed Jun 19, 2023
1 parent e49afeb commit 63de360
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/cfnguardian/compile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,13 @@ def get_resources
@errors << "CfnGuardian::NoIdKeyForResourceError - resource: #{resource} in resource group: #{group} doesn't have the `Id:` key"
next
else
if !resource['Hosts'].has_key?('Id')
@errors << "CfnGuardian::NoIdKeyForResourceError - resource: #{resource} in resource group: #{group} doesn't have the `Id:` key"
next
end
resource['Hosts'].each { |host|
if !host.has_key?('Id')
@errors << "CfnGuardian::NoIdKeyForResourceError - resource: #{resource} in resource group: #{group} doesn't have the `Id:` key"
next
end
}

end
end

Expand Down

0 comments on commit 63de360

Please sign in to comment.