We do not pass device path to unmount device

Also rename attachable-with-long-format file
pull/564/head
Hemant Kumar 2018-11-19 21:08:10 -05:00
parent c7598e8844
commit 1570f39d9e
3 changed files with 1 additions and 3 deletions

View File

@ -64,7 +64,7 @@ var _ = utils.SIGDescribe("Detaching volumes", func() {
})
It("should not work when mount is in progress", func() {
driver := "attachable-with-long-format"
driver := "attachable-with-long-mount"
driverInstallAs := driver + "-" + suffix
By(fmt.Sprintf("installing flexvolume %s on node %s as %s", path.Join(driverDir, driver), node.Name, driverInstallAs))

View File

@ -81,8 +81,6 @@ domountdevice() {
unmountdevice() {
debug "unmountdevice $@"
MNTDEVICE=$2
validateMountDeviceOrDie "$MNTDEVICE" "unmountdevice"
MNTPATH=$1
rm "${MNTPATH}/index.html" >/dev/null 2>&1
umount ${MNTPATH} >/dev/null 2>&1