Fix linter warnings about the automatic name property
MODIFY
recipes/repository.rb
recipes/repository.rb
@@ -73,7 +73,6 @@ when 'rhel', 'fedora', 'amazon'
# Add YUM repository
yum_repository 'datadog' do
- name 'datadog'
description 'datadog'
if node['datadog']['agent6']
baseurl node['datadog']['agent6_yumrepo']
@@ -124,7 +123,6 @@ when 'suse'
# Add YUM repository
zypper_repository 'datadog' do
- name 'datadog'
description 'datadog'
if node['datadog']['agent6']
baseurl node['datadog']['agent6_yumrepo_suse']

MODIFY
resources/monitor.rb
resources/monitor.rb
default_action :add
-property :name, String, name_attribute: true
property :cookbook, String, default: 'datadog'
# checks have 3 sections: init_config, instances, logs

Fix linter warnings about the automatic name property