HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //lib/python3.9/site-packages/ansible/plugins/action/__pycache__/assert.cpython-39.pyc
a

�)g�@shddlmZmZmZeZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZGdd�de�Zd	S)
�)�absolute_import�division�print_function)�AnsibleError)�Conditional)�
ActionBase)�string_types)�booleancs.eZdZdZdZed�Zd�fdd�	Z�ZS)�ActionModulez Fail with custom message F)�fail_msg�msg�quiet�success_msg�thatNcs|durt�}tt|��||�}~d|jjvr6td��d}d}|jj�d|jj�d��}|durfd}nDt|t	�r�t
dd�|D��s�td��nt|tt	f�s�td	t|���|jj�d
�}|dur�d}nFt|t	�r�t
dd�|D��s�td
��n t|tt	f��stdt|���t
|jj�dd�dd�}z|jjd}Wn t�yT|jjd}Yn0t|t��rn|j�|�}t|t	��s�|g}t|jd�}|�s�d|d<|D]L}	|	g|_|j|j|d�}
|
�s�d|d<|
|d<|	|d<||d<|S�q�d|d<||d<|S)Nrz%conditional required in "that" stringrrzAssertion failedcss|]}t|t�VqdS�N��
isinstancer��.0�x�r�A/usr/lib/python3.9/site-packages/ansible/plugins/action/assert.py�	<genexpr>2�z#ActionModule.run.<locals>.<genexpr>zFType of one of the elements in fail_msg or msg list is not string typezHIncorrect type for fail_msg or msg, expected a string or list and got %srzAll assertions passedcss|]}t|t�VqdSrrrrrrr;rzBType of one of the elements in success_msg list is not string typezDIncorrect type for success_msg, expected a string or list and got %sr
F)�strict)�loaderTZ_ansible_verbose_always)ZtemplarZall_varsZfailedZevaluated_toZ	assertionZchanged)�dict�superr
�runZ_task�argsr�getr�list�allr�typer	Zuntemplated_args�KeyError�strZ_templar�templaterZ_loaderZwhenZevaluate_conditional)�self�tmpZ	task_vars�resultrrr
ZthatsZcondrZtest_result��	__class__rrr!s`



zActionModule.run)NN)	�__name__�
__module__�__qualname__�__doc__ZTRANSFERS_FILES�	frozensetZ_VALID_ARGSr�
__classcell__rrr*rr
sr
N)Z
__future__rrrr#Z
__metaclass__Zansible.errorsrZansible.playbook.conditionalrZansible.plugins.actionrZansible.module_utils.sixrZ)ansible.module_utils.parsing.convert_boolr	r
rrrr�<module>s