bfraser / puppet-grafana

Puppet module to manage Grafana
Apache License 2.0
39 stars 204 forks source link

Fixed HTTPS call for EL6 default Ruby 1.8.7 version #115

Open kbon opened 8 years ago

kbon commented 8 years ago

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.