def reload_exports():
    '''
    Trigger a reload of the exports file to apply changes

    CLI Example:

    .. code-block:: bash

        salt '*' nfs3.reload_exports
    '''
    ret = {}

    command = 'exportfs -r'

    output = __salt__['cmd.run_all'](command)
    ret['stdout'] = output['stdout']
    ret['stderr'] = output['stderr']
    # exportfs always returns 0, so retcode is useless
    # We will consider it an error if stderr is nonempty
    ret['result'] = output['stderr'] == ''

    return ret
def reload_exports ( ) : ret = { } command = 'exportfs -r' output = __salt__ [ 'cmd.run_all' ] ( command ) ret [ 'stdout' ] = output [ 'stdout' ] ret [ 'stderr' ] = output [ 'stderr' ] ret [ 'result' ] = output [ 'stderr' ] == '' return ret
Trigger a reload of the exports file to apply changes

    CLI Example:

    .. code-block:: bash

        salt '*' nfs3.reload_exports