def templates():
    '''
    .. versionadded:: 2015.5.0

    List the available LXC template scripts installed on the minion

    CLI Examples:

    .. code-block:: bash

        salt myminion lxc.templates
    '''
    try:
        template_scripts = os.listdir('/usr/share/lxc/templates')
    except __HOLE__:
        return []
    else:
        return [x[4:] for x in template_scripts if x.startswith('lxc-')]
dataset/ETHPy150Open saltstack/salt/salt/modules/lxc.py/templates