Hi,
I have the following datadog which I need to call/load from attribute file, instead of recipe files. As per few stackoverflow posts only " chef::DataBagItem.load" method need to be used if we want load from attribute file.
Databag:
databag name: infrastructure-jwn-license
{
"id": "infrastructure-jwn-license",
"infrastructure-jwn-license-key": "ProductionKeyString",
"infrastructure-dev-jwn-license-key": "DevKeyString"
}
Calling as:
couchbase = Chef::DataBagItem.load('infrastructure-jwn-license', 'infrastructure-jwn-license')
Error:
Net::HTTPServerException
404 "Not Found"
Not sure If I have missed something.