When trying to create a grafana_datasource using CentOS 6.8, the Puppet agent run failed with following error:
Could not evaluate: can't convert Hash into String
Apparently this is caused by the way the Net::HTTP object is created, especially the HTTPS-related options. Fixed by creating the Net::HTTP object with only hostname/port params, and later adding the SSL options when using HTTPS.
When trying to create a
grafana_datasource
using CentOS 6.8, the Puppet agent run failed with following error:Apparently this is caused by the way the
Net::HTTP
object is created, especially the HTTPS-related options. Fixed by creating theNet::HTTP
object with only hostname/port params, and later adding the SSL options when using HTTPS.