We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a72b5d1 commit c3f4656Copy full SHA for c3f4656
netshare/drivers/efs.go
@@ -6,6 +6,7 @@ import (
6
"github.com/docker/go-plugins-helpers/volume"
7
"os"
8
"strings"
9
+ "regexp"
10
)
11
12
const (
@@ -100,6 +101,9 @@ func (e efsDriver) Unmount(r volume.UnmountRequest) volume.Response {
100
101
}
102
103
func (e efsDriver) fixSource(name, id string) string {
104
+ reg, _ := regexp.Compile("(fs-[0-9a-f]+)$")
105
+ name = reg.FindString(name)
106
+
107
if e.mountm.HasOption(name, ShareOpt) {
108
name = e.mountm.GetOption(name, ShareOpt)
109
0 commit comments