Commit a2aa3621 authored by Marcelo Grebois's avatar Marcelo Grebois
parent 108ee220
...@@ -346,8 +346,8 @@ func (b *glusterfsMounter) setUpAtInternal(dir string) error { ...@@ -346,8 +346,8 @@ func (b *glusterfsMounter) setUpAtInternal(dir string) error {
return nil return nil
} }
const invalidOption = "Invalid option auto_unmount" if dstrings.Contains(errs.Error(), "Invalid option auto_unmount") ||
if dstrings.Contains(errs.Error(), invalidOption) { dstrings.Contains(errs.Error(), "Invalid argument") {
// Give a try without `auto_unmount` mount option, because // Give a try without `auto_unmount` mount option, because
// it could be that gluster fuse client is older version and // it could be that gluster fuse client is older version and
// mount.glusterfs is unaware of `auto_unmount`. // mount.glusterfs is unaware of `auto_unmount`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment