mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
Fix metalinter issue
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
This commit is contained in:
parent
50ba8ed446
commit
03d93219d7
@ -237,7 +237,7 @@ func attachRBDImage(volOptions *rbdVolume, userID string, credentials map[string
|
||||
moduleName = nbd
|
||||
}
|
||||
|
||||
_, found := waitForPath(volOptions.Pool, image, 1, useNBD)
|
||||
devicePath, found := waitForPath(volOptions.Pool, image, 1, useNBD)
|
||||
if !found {
|
||||
attachdetachMutex.LockKey(imagePath)
|
||||
|
||||
@ -263,9 +263,8 @@ func attachRBDImage(volOptions *rbdVolume, userID string, credentials map[string
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
devicePath, err = createPath(volOptions, userID, credentials)
|
||||
}
|
||||
devicePath, err := createPath(volOptions, userID, credentials)
|
||||
|
||||
return devicePath, err
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ const (
|
||||
PluginFolder = "/var/lib/kubelet/plugins"
|
||||
)
|
||||
|
||||
// ForAllFunc stores metdata with identifier
|
||||
// ForAllFunc stores metadata with identifier
|
||||
type ForAllFunc func(identifier string) error
|
||||
|
||||
// CachePersister interface implemented for store
|
||||
|
Loading…
Reference in New Issue
Block a user