Merge pull request #9311 from jeromegn/allow-empty-devices

Don't ignore nil devices in plugin fingerprint
This commit is contained in:
Chris Baker 2020-11-11 13:54:03 -06:00 committed by GitHub
commit 48b1674335
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -413,11 +413,6 @@ func (i *instanceManager) handleFingerprintError() {
// handleFingerprint stores the new devices and triggers the fingerprint output
// channel. An error is returned if the passed devices don't pass validation.
func (i *instanceManager) handleFingerprint(f *device.FingerprintResponse) error {
// If no devices are returned then there is nothing to do.
if f.Devices == nil {
return nil
}
// Validate the received devices
var validationErr multierror.Error
for i, d := range f.Devices {