mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-14 20:07:26 +00:00
fix golint issue for pkg/volume/util
This commit is contained in:
@@ -20,7 +20,7 @@ import (
|
||||
k8stypes "k8s.io/apimachinery/pkg/types"
|
||||
)
|
||||
|
||||
// This error on attach indicates volume is attached to a different node
|
||||
// DanglingAttachError indicates volume is attached to a different node
|
||||
// than we expected.
|
||||
type DanglingAttachError struct {
|
||||
msg string
|
||||
@@ -32,6 +32,7 @@ func (err *DanglingAttachError) Error() string {
|
||||
return err.msg
|
||||
}
|
||||
|
||||
// NewDanglingError create a new dangling error
|
||||
func NewDanglingError(msg string, node k8stypes.NodeName, devicePath string) error {
|
||||
return &DanglingAttachError{
|
||||
msg: msg,
|
||||
|
||||
Reference in New Issue
Block a user