puppetlabs / puppetlabs-puppet_metrics_collector

Puppet module for collecting metrics from PE components
Apache License 2.0
3 stars 27 forks source link

(SUP-3681) Check for valid status key in metrics #166

Closed m0dular closed 2 years ago

m0dular commented 2 years ago

Prior to this commit, an authentication failure would return a single hash instead of an array of hashes, which caused an exception. This commit uses dig() to check the status and skip nulls.