mirror of https://github.com/k3s-io/k3s
We do not pass device path to unmount device
Also rename attachable-with-long-format filepull/564/head
parent
c7598e8844
commit
1570f39d9e
|
@ -64,7 +64,7 @@ var _ = utils.SIGDescribe("Detaching volumes", func() {
|
||||||
})
|
})
|
||||||
|
|
||||||
It("should not work when mount is in progress", func() {
|
It("should not work when mount is in progress", func() {
|
||||||
driver := "attachable-with-long-format"
|
driver := "attachable-with-long-mount"
|
||||||
driverInstallAs := driver + "-" + suffix
|
driverInstallAs := driver + "-" + suffix
|
||||||
|
|
||||||
By(fmt.Sprintf("installing flexvolume %s on node %s as %s", path.Join(driverDir, driver), node.Name, driverInstallAs))
|
By(fmt.Sprintf("installing flexvolume %s on node %s as %s", path.Join(driverDir, driver), node.Name, driverInstallAs))
|
||||||
|
|
|
@ -81,8 +81,6 @@ domountdevice() {
|
||||||
|
|
||||||
unmountdevice() {
|
unmountdevice() {
|
||||||
debug "unmountdevice $@"
|
debug "unmountdevice $@"
|
||||||
MNTDEVICE=$2
|
|
||||||
validateMountDeviceOrDie "$MNTDEVICE" "unmountdevice"
|
|
||||||
MNTPATH=$1
|
MNTPATH=$1
|
||||||
rm "${MNTPATH}/index.html" >/dev/null 2>&1
|
rm "${MNTPATH}/index.html" >/dev/null 2>&1
|
||||||
umount ${MNTPATH} >/dev/null 2>&1
|
umount ${MNTPATH} >/dev/null 2>&1
|
||||||
|
|
Loading…
Reference in New Issue