Marcelo Grebois 2017-09-22 08:31:18 +02:00
parent 108ee22096
commit a2aa36210f
1 changed files with 2 additions and 2 deletions

View File

@ -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`.