def inherit(prop, name, **kwargs):
 zfs = _check_zfs()
 recursive = kwargs.get('recursive', False)
 revert = kwargs.get('revert', False)
 res = __salt__['cmd.run_all']('{zfs} inherit {recursive}{revert}{prop} {name}'.format(zfs=zfs, recursive=('-r ' if recursive else ''), revert=('-S ' if revert else ''), prop=prop, name=name))
 ret = {}
 ret[name] = {}
 if (res['retcode'] != 0):
  ret[name][prop] = (res['stderr'] if ('stderr' in res) else res['stdout'])
  if ('property cannot be inherited' in res['stderr']):
   ret[name][prop] = '{0}, {1}'.format(ret[name][prop], "use revert=True to try and reset it to it's default value.")
 else:
  ret[name][prop] = 'cleared'
 return ret

def inherit ( prop , name , ** kwargs ) : zfs = _check_zfs ( ) recursive = kwargs . get ( 'recursive' , False ) revert = kwargs . get ( 'revert' , False ) res = __salt__ [ 'cmd.run_all' ] ( '{zfs} inherit {recursive}{revert}{prop} {name}' . format ( zfs = zfs , recursive = ( '-r ' if recursive else '' ) , revert = ( '-S ' if revert else '' ) , prop = prop , name = name ) ) ret = { } ret [ name ] = { } if ( res [ 'retcode' ] != 0 ) : ret [ name ] [ prop ] = ( res [ 'stderr' ] if ( 'stderr' in res ) else res [ 'stdout' ] ) if ( 'property cannot be inherited' in res [ 'stderr' ] ) : ret [ name ] [ prop ] = '{0}, {1}' . format ( ret [ name ] [ prop ] , "use revert=True to try and reset it to it's default value." ) else : ret [ name ] [ prop ] = 'cleared' return ret
ensure an object is inheriting acls from its parent .