관리-도구
편집 파일: openbsd.cpython-39.opt-1.pyc
a �)g � @ s� d dl mZmZmZ eZd dlZd dlZd dlm Z d dl mZmZ d dl mZ d dlmZmZ d dlmZ G dd � d e�ZG d d� de�ZdS )� )�absolute_import�division�print_functionN)�to_text)�Hardware�HardwareCollector)�timeout)�get_file_content�get_mount_size)� get_sysctlc @ sV e Zd ZdZdZddd�Ze�� dd� �Zdd � Zd d� Z dd � Z dd� Zdd� ZdS )�OpenBSDHardwareaV OpenBSD-specific subclass of Hardware. Defines memory, CPU and device facts: - memfree_mb - memtotal_mb - swapfree_mb - swaptotal_mb - processor (a list) - processor_cores - processor_count - processor_speed - uptime_seconds In addition, it also defines number of DMI facts and device facts. �OpenBSDNc C s� i }t | jdg�| _|�| �� � |�| �� � |�| �� � |�| �� � |�| �� � z|�| � � � W n t jy� Y n0 |S )NZhw)r �module�sysctl�update�get_processor_facts�get_memory_facts�get_device_facts� get_dmi_facts�get_uptime_facts�get_mount_factsr �TimeoutError)�selfZcollected_factsZhardware_facts� r �O/usr/lib/python3.9/site-packages/ansible/module_utils/facts/hardware/openbsd.py�populate0 s zOpenBSDHardware.populatec C s� i }g |d<