Skip to content

Commit

Permalink
Fix bug where app delete/recreate caused remount to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsmithdatera committed Jan 22, 2019
1 parent 69c3d4e commit 9101abe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/client/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ func (v *Volume) Mount(dest string, options []string) error {
co.Debugf(ctxt, "Mount invoked for %s", v.Name)
if v.DevicePath == "" {
return fmt.Errorf("No device path found for volume %s. Is the volume logged in?", v.Name)
} else if v.MountPath != "" {
return fmt.Errorf("Mount path already exists for volume %s", v.Name)
}
// } else if v.MountPath != "" {
// return fmt.Errorf("Mount path already exists for volume %s", v.Name)
// }
if err := mount(ctxt, v.DevicePath, dest, options); err != nil {
co.Error(ctxt, err)
return err
Expand Down

0 comments on commit 9101abe

Please sign in to comment.