File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/__pycache__/platform.cpython-310.pyc
o
�N�gu � @ s& d Z ddlZddlZddlZddlZddlZddlZddlZddlm Z
d+dd�Ze
dd� �Ze
d d
� �Z
e
dd� �Ze
d
d� �Ze
dd� �Ze
dd� �Ze
dd� �Ze
dd� �Ze
dd� �Ze
dd� �Ze
dd� �Ze
dd� �Ze
dd � �Ze
d!d"� �Ze
d#d$� �Ze
d%d&� �Zd'd(� Zd)d*� ZdS ),z7
Functions for identifying which platform a machine is
� N)�memoizeTc C s� | rt �� }nt �� }d }}t�tj�� t jdd�}W d � n1 s&w Y t�tj�� t �� }W d � n1 s@w Y |||fS )zg
Simple function to return information about the OS distribution (id_name, version, codename).
� T)ZbestN) �distro�name�id�
contextlib�suppress�
subprocess�CalledProcessError�versionZcodename)Zfull_distribution_nameZdistro_nameZdistro_versionZdistro_codename� r �G/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/platform.py�linux_distribution s
�
�
r c C � t j�d�S )z?
Simple function to return if a host is Windows or not
�win��sys�platform�
startswithr r r r
�
is_windows"