Fix filepath concatenation

Thanks @chrislovecnm
This commit is contained in:
Justin Santa Barbara 2017-11-30 11:56:26 -05:00
parent 0ef2fde69d
commit 1338ba13fc
1 changed files with 1 additions and 1 deletions

View File

@ -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) {