File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/runners/__pycache__/fileserver.cpython-310.pyc
Back
o ;jxE � @ st d Z ddlZddd�Zddd�Zdd d �Zddd�Zdd d�Zddd�Zddd�Z ddd�Z ddd�Zddd�ZdS )z- Directly manage the Salt fileserver plugins � NFc C s t j�t�}t|j| |d��S )a� Return the available fileserver environments. If no backend is provided, then the environments for all configured backends will be returned. backend Narrow fileserver backends to a subset of the enabled ones. .. versionchanged:: 2015.5.0 If all passed backends start with a minus sign (``-``), then these backends will be excluded from the enabled backends. However, if there is a mix of backends with and without a minus sign (ex: ``backend=-roots,git``) then the ones starting with a minus sign will be disregarded. Additionally, fileserver backends can now be passed as a comma-separated list. In earlier versions, they needed to be passed as a python list (ex: ``backend="['roots', 'git']"``) CLI Example: .. code-block:: bash salt-run fileserver.envs salt-run fileserver.envs backend=roots,git salt-run fileserver.envs git )�back�sources)�salt� fileserver� Fileserver�__opts__�sorted�envs)�backendr r � r �K/opt/saltstack/salt/lib/python3.10/site-packages/salt/runners/fileserver.pyr s r c C �"