mirror of https://github.com/kubernetes/kops.git
parent
0ef2fde69d
commit
1338ba13fc
|
|
@ -311,7 +311,7 @@ func (v *AWSVolumes) FindMountedVolume(volume *Volume) (string, error) {
|
|||
}
|
||||
|
||||
func findNvmeVolume(findName string) (device string, err error) {
|
||||
p := pathFor("/dev/disk/by-id/" + findName)
|
||||
p := pathFor(filepath.Join("/dev/disk/by-id", findName))
|
||||
stat, err := os.Lstat(p)
|
||||
if err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue