Merge pull request #71243 from gnufied/fix-dummy-attachable-flex-driver

We do not pass device path to unmount device
This commit is contained in:
Kubernetes Prow Robot 2018-12-06 00:02:44 -08:00 committed by GitHub
commit bdb7c24cab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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