chef-datadog icon indicating copy to clipboard operation
chef-datadog copied to clipboard

[doc] Correct example in windows_service

Open linceaerian opened this issue 2 years ago • 0 comments

Can you fix the doc in : https://github.com/DataDog/chef-datadog/blob/main/recipes/windows_service.rb

Based on your current cookbook, the documentation should make reference to an array of hash, not a hash of array of hash... AKA something like

# node['datadog']['windows_service']['instances'] = {
#   "instances": [
#     {
#       "username": "RemoteHostname\thomas",
#       "services": ["RemoteServiceName1", "RemoteServiceName2"],
#       "host": "RemoteHostName",
#       "password": "secretpw"
#     }
#   ]
# }

Should be:

# node['datadog']['windows_service']['instances'] = [
#     {
#       "username": "RemoteHostname\thomas",
#       "services": ["RemoteServiceName1", "RemoteServiceName2"],
#       "host": "RemoteHostName",
#       "password": "secretpw"
#     }
#   ]

Regards

linceaerian avatar Jul 19 '22 15:07 linceaerian