HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/sos/collector/clusters/__pycache__/satellite.cpython-39.pyc
a

\��hb�@s,ddlmZddlmZGdd�de�ZdS)���quote)�Clusterc@s0eZdZdZdZdZdd�Zdd�Zdd	�Zd
S)�	satellitea3
    This profile is specifically for Red Hat Satellite 6, and not earlier
    releases of Satellite.

    While note technically a 'cluster' in the traditional sense, Satellite
    does provide for 'capsule' nodes which is what this profile aims to
    enumerate beyond the 'primary' Satellite system.
    zRed Hat Satellite 6)rzsatellite-installercCsd}d}|t|t|��S)Nzsu postgres -c %szpsql foreman -c %sr)�self�queryZ_cmdZ_dbcmd�r�D/usr/lib/python3.9/site-packages/sos/collector/clusters/satellite.py�	_psql_cmdszsatellite._psql_cmdcCsB|�d�}|j|dd�}|ddkr>dd�|d��D�}|SgS)	Nz/copy (select name from smart_proxies) to stdoutT)Z	need_root�statusrcSsg|]}d|vr|���qS)zcould not change directory)�strip)�.0�nrrr	�
<listcomp>%s�z'satellite.get_nodes.<locals>.<listcomp>�output)r
Zexec_primary_cmd�
splitlines)r�cmd�resZnodesrrr	�	get_nodes!s

�zsatellite.get_nodescCs|j|jjkrdSdS)NrZcapsule)�addressZprimary)rZnoderrr	�set_node_label,szsatellite.set_node_labelN)	�__name__�
__module__�__qualname__�__doc__Zcluster_nameZpackagesr
rrrrrr	rs	rN)ZshlexrZsos.collector.clustersrrrrrr	�<module>s