관리-도구
편집 파일: assert.cpython-39.opt-1.pyc
a �)g � @ sh d dl mZmZmZ eZd dlmZ d dlm Z d dl mZ d dlm Z d dlmZ G dd� de�Zd S ) � )�absolute_import�division�print_function)�AnsibleError)�Conditional)� ActionBase)�string_types)�booleanc s. e Zd ZdZdZed�Zd� fdd� Z� ZS )�ActionModulez Fail with custom message F)�fail_msg�msg�quiet�success_msg�thatNc s |d u rt � }tt| ��||�}~d| jjvr6td��d }d }| jj�d| jj�d��}|d u rfd}nDt|t �r�t dd� |D ��s�td��nt|tt f�s�td t|� ��| jj�d �}|d u r�d}nFt|t �r�t dd� |D ��s�td ��n t|tt f��stdt|� ��t | jj�dd�dd�}z| jjd }W n t�yT | jjd }Y n0 t|t��rn| j�|�}t|t ��s�|g}t| jd�}|�s�d|d<