diff options
author | Adam Leff <adam@leff.co> | 2016-07-01 15:48:51 -0400 |
---|---|---|
committer | Adam Leff <adam@leff.co> | 2016-07-03 13:26:01 -0400 |
commit | 1e70e7912bcc23a53673a69bf411b607d4085eff (patch) | |
tree | 65a6c4e4f18422f4b69c02ca0cf8118f11c1fedb /acceptance/top-cookbooks | |
parent | 741ac9dde480a934f2f4fc98ada2ffa7ad4f71c0 (diff) | |
download | chef-1e70e7912bcc23a53673a69bf411b607d4085eff.tar.gz |
Data Collector server URL validation, and disable on host down
If a user configured data_collector.server_url in their Chef config
as an empty string, we blissfully passed it along to Chef::HTTP
which would eventually raise a TypeError when trying to dup the
URI's host. This change validates the server_url when setting up
the Data Collector and gives helpful error messages to the user.
We also count Errno::EHOSTDOWN as an error worthy of disabling
the Data Collector reporter for a given run if the user so chooses.
Diffstat (limited to 'acceptance/top-cookbooks')
0 files changed, 0 insertions, 0 deletions