Skip to content

Commit

Permalink
Merge pull request #576 from q384566678/device-warn
Browse files Browse the repository at this point in the history
validate: implement DevicesErrorOnDup
  • Loading branch information
liangchenye authored Feb 8, 2018
2 parents dc61225 + b25ef0d commit 965c79c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ func (v *Validator) CheckLinux() (errs error) {
}

if _, exists := devTypeList[devID]; exists {
logrus.Warnf("type:%s, major:%d and minor:%d for linux devices is duplicated", device.Type, device.Major, device.Minor)
logrus.Warnf("%v", specerror.NewError(specerror.DevicesErrorOnDup, fmt.Errorf("type:%s, major:%d and minor:%d for linux devices is duplicated", device.Type, device.Major, device.Minor), rspec.Version))
} else {
devTypeList[devID] = true
}
Expand Down

0 comments on commit 965c79c

Please sign in to comment.