mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-18 04:10:22 +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
|
moduleName = nbd
|
||||||
}
|
}
|
||||||
|
|
||||||
_, found := waitForPath(volOptions.Pool, image, 1, useNBD)
|
devicePath, found := waitForPath(volOptions.Pool, image, 1, useNBD)
|
||||||
if !found {
|
if !found {
|
||||||
attachdetachMutex.LockKey(imagePath)
|
attachdetachMutex.LockKey(imagePath)
|
||||||
|
|
||||||
@ -263,9 +263,8 @@ func attachRBDImage(volOptions *rbdVolume, userID string, credentials map[string
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
devicePath, err = createPath(volOptions, userID, credentials)
|
||||||
}
|
}
|
||||||
devicePath, err := createPath(volOptions, userID, credentials)
|
|
||||||
|
|
||||||
return devicePath, err
|
return devicePath, err
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ const (
|
|||||||
PluginFolder = "/var/lib/kubelet/plugins"
|
PluginFolder = "/var/lib/kubelet/plugins"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ForAllFunc stores metdata with identifier
|
// ForAllFunc stores metadata with identifier
|
||||||
type ForAllFunc func(identifier string) error
|
type ForAllFunc func(identifier string) error
|
||||||
|
|
||||||
// CachePersister interface implemented for store
|
// CachePersister interface implemented for store
|
||||||
|
Loading…
Reference in New Issue
Block a user