def is_fuse_exec(cmd):
 cmd_path = _which(cmd)
 if (not cmd_path):
  return False
 elif (not _which('ldd')):
  raise CommandNotFoundError('ldd')
 out = __salt__['cmd.run']('ldd {0}'.format(cmd_path), python_shell=False)
 return ('libfuse' in out)

def is_fuse_exec ( cmd ) : cmd_path = _which ( cmd ) if ( not cmd_path ) : return False elif ( not _which ( 'ldd' ) ) : raise CommandNotFoundError ( 'ldd' ) out = __salt__ [ 'cmd.run' ] ( 'ldd {0}' . format ( cmd_path ) , python_shell = False ) return ( 'libfuse' in out )
returns true if the command passed is a fuse mountable application .