Skip to content

Commit

Permalink
Fix filepath concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsb committed Nov 30, 2017
1 parent 0ef2fde commit 1338ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protokube/pkg/protokube/aws_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1338ba1

Please sign in to comment.