File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/zpool.cpython-310.pyc
o
�N�g� � @ s^ d Z ddlZddlZddlZddlZddlZddlmZ e� e
�ZdZddd�Z
dd � Zd
d� Zdd
� ZdEdd�ZdFdd�ZdGdd�ZdHdd�Zdd� Zdd� ZdIdd�ZdJd d!�Zd"d#� Zd$d%� ZdId&d'�Zd(d)� Zd*d+� ZdKd,d-�Zejj j!�"d.�d/d0� �Z#d1d2� Z$dLd3d4�Z%d5d6� Z&d7d8� Z'dId9d:�Z(dEd;d<�Z)d=d>� Z*d?d@� Z+dLdAdB�Z,dMdCdD�Z-dS )Na�
Module for running ZFS zpool command
:codeauthor: Nitin Madhok <nmadhok@g.clemson.edu>, Jorge Schrauwen <sjorge@blackdot.be>
:maintainer: Jorge Schrauwen <sjorge@blackdot.be>
:maturity: new
:depends: salt.utils.zfs
:platform: illumos,freebsd,linux
.. versionchanged:: 2018.3.1
Big refactor to remove duplicate code, better type conversions and improved
consistency in output.
� N)�OrderedDict�zpool�import�list)�import_�list_c C s t �d�rtS dS )z5
Only load when the platform has zfs support
Zzfs_support)Fz4The zpool module cannot be loaded: zfs not supported)Z
__grains__�get�__virtualname__� r
r
�F/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/zpool.py�__virtual__! s
r c C s� t � }| �� D ]Z\}}|dvrat|�}|r%t|t�r%|�t ||fg�� q|r1t|t �r1|||<