Skip to content

Commit

Permalink
Merge pull request #9311 from jeromegn/allow-empty-devices
Browse files Browse the repository at this point in the history
Don't ignore nil devices in plugin fingerprint
  • Loading branch information
cgbaker committed Nov 11, 2020
2 parents 0ed0b94 + 66ddf62 commit 1df408d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions client/devicemanager/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1df408d

Please sign in to comment.