/
usr
/
libexec
/
kcare
/
python
/
kcarectl
/
__pycache__
/
New Directory
Upload File
HOME
a @�j., � @ s. d dl Z d dlZd dlZd dlZd dlZd dlZd dlZddlmZm Z m Z mZmZm Z dZdZdZdd� Zd d � Zdd� Ze jd d� �Zdd� ZdWdd�ZdZddd�ZdXdd�Zdd� Zdd� Z dd � Z!e jd!d"� �Z"e jd#d$� �Z#e jd%d&� �Z$d'd(� Z%d)d*� Z&d+d,� Z'd-d.� Z(d/d0� Z)d1d2� Z*d3d4� Z+d5d6� Z,d7e&fd8e%fd9e'fd:e(fd;e)fd<e*fd=e+ffZ-d>d?� Z.d@dA� Z/dBdC� Z0e j1e j2dD�dEdF� �Z3e j1e j2dD�dGdH� �Z4e je j1e j2dD�dIdJ� ��Z5e j1e j2d dK�dLdM� �Z6e j1e j2d dK�dNdO� �Z7e j1e j2dD�dPdQ� �Z8e j1e j2dRdK�dSdT� �Z9dUdV� Z:dS )Y� N� )�config� constants� log_utils� process_utils�selinux�utilsz/usr/libexec/kcare/virt-whatz/procz/etc/os-releasec C s2 t jd d� dk rt�� S dd l} | jdd�S d S )N� �� � r F)Zfull_distribution_name)�sys�version_info�platformZlinux_distribution�distro�r � r �4/usr/libexec/kcare/python/kcarectl/platform_utils.py� get_distro s r c C s: t jdd� dk rtt�S ddl} | �d�| �d�fS dS )z&Raw ID and VERSION_ID from os-release.Nr r r �idZ version_id)r r �_parse_os_release�OS_RELEASE_PATHr Zos_release_attrr r r r �get_os_release"