def _set_symlink_ownership(path, user, group):
 try:
  __salt__['file.lchown'](path, user, group)
 except OSError:
  pass
 return _check_symlink_ownership(path, user, group)

def _set_symlink_ownership ( path , user , group ) : try : __salt__ [ 'file.lchown' ] ( path , user , group ) except OSError : pass return _check_symlink_ownership ( path , user , group )
set the ownership of a symlink and return a boolean indicating success/failure .