File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/__pycache__/roster_matcher.cpython-310.pyc
Back
o ;j( � @ s� d Z ddlZddlZddlZddlZddlZdZzddlZdZW n e y) Y nw e� e�Zddd�Z dd � ZG d d� d�Zdd � ZdS )z7 Roster matching by various criteria (glob, pcre, etc) � NFT�ipv4c C s t | |||�}|�� S �N)� RosterMatcher�targets)Zconditioned_raw�tgt�tgt_type�ipvZrmatcher� r �M/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/roster_matcher.pyr s r c C s, zt | �d��W S ty t | � Y S w )z2 Return the tgt as a set of literal names �,)�set�split�AttributeError)r r r r �_tgt_set s �r c @ sZ e Zd ZdZddd�Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dd� Zdd� ZdS )r z/ Matcher for the roster data structure r c C s || _ || _|| _|| _d S r )r r �rawr )�selfr r r r r r r �__init__/ s zRosterMatcher.__init__c C s0 zt | d| j� d��� W S ty i Y S w )zA Execute the correct tgt_type routine and return Zret_Z_minions)�getattrr r )r r r r r 5 s �zRosterMatcher.targetsc C s2 i }|| j �D ]}| �|�}|r|�� ||<