Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/module_utils/common/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/module_utils/common/parameters.pyc

�
�Udac@`siddlmZmZmZeZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZmZmZmZed2�Zidefd6defd	6d
efd6defd
6d3d6defd6d4d6dddddddgfd6d5d6d6d6d7d"6d8d%6d9d'6d:d)6d;d,6Zd<Zd-�Zd.�Zd/d0�Zd2d1�Zd2S(=i(tabsolute_importtdivisiontprint_function(t	to_native(tMapping(tis_iterable(tcheck_type_dict(tbinary_typet
integer_typeststring_typest	text_typet
check_modet_debugtdebugt_difftdifft_keep_remote_filestkeep_remote_filest_nametmodule_nametno_logt_remote_tmpt
remote_tmpt_selinux_special_fstfusetnfstvboxsftramfst9ptvfattselinux_special_fst_shells/bin/shtshell_executablet_socket_pathtsockett_string_conversion_actiontwarntstring_conversion_actiont_syslog_facilitytINFOtsyslog_facilityt_tmpdirttmpdirt
_verbosityt	verbositytansible_versions0.0tversioncc`s't|ttf�r3|r/t|dd�VndSt|t�r|x�|j�D]&}xt|d�D]}|VqfWqOWn�t|�r�x�|D]"}xt|�D]}|Vq�Wq�Wnkt|tt	f�r�dSt|t
tt�t
g��rt|dd�Vntdt|�|f��dS(su Return native stringified values from datastructures.

    For use with removing sensitive values pre-jsonification.terrorstsurrogate_or_strictNit	nonstringt
simplereprsUnknown parameter type: %s, %s(t
isinstanceR
RRRtitemst_return_datastructure_nameRtbooltNoneTypettupletlistRtfloatt	TypeErrorttype(tobjtelementt
subelement((sJ/usr/lib/python2.7/site-packages/ansible/module_utils/common/parameters.pyR5.s"
"c
	C`sxt�}xh|j�D]Z\}}|jdt�re|j|d	�}|re|jt|��qen|jd�}|d	k	r|jd�}|j|�}|d	k	rp|dks�|dkrm|jdd�dkrmt|t�s�|g}nxr|D]g}	t|	t	�r t
|	�}	nt|	t�sMtdj
||	|���n|jt||	��q�WqmqpqqW|S(
s:Return set of no log values

    :arg argument_spec: An argument spec dictionary from a module
    :arg params: Dictionary of all module parameters

    :returns: Set of strings that should be hidden from output::

        {'secret_dict_value', 'secret_list_item_one', 'secret_list_item_two', 'secret_string'}
    RtoptionsR<tdictR9telementstsXValue '{1}' in the sub parameter field '{0}' must by a {2}, not '{1.__class__.__name__}'N(tsetR4tgettFalsetNonetupdateR5R3R9R	RRR;tformattlist_no_log_values(
t
argument_spectparamst
no_log_valuestarg_nametarg_optst
no_log_objecttsub_argument_spectwanted_typetsub_parameterst	sub_param((sJ/usr/lib/python2.7/site-packages/ansible/module_utils/common/parameters.pyRJGs,	0
	'RCc
	C`s>g}x1|j�D]#\}}||kr|rDd||f}n|}|jd�d	k	st|jd�d	k	r�|jid|d6|jd�d6�n|jd�}|d	k	r6||}t|t�r�|g}nt|t�r3x?|D]4}	t|	t�r�|jt||	d|��q�q�Wq3q6qqW|S(
s�Return a list of deprecations

    :arg argument_spec: An argument spec dictionary from a module
    :arg params: Dictionary of all module parameters

    :returns: List of dictionaries containing a message and version in which
        the deprecated parameter will be removed, or an empty list::

            [{'msg': "Param 'deptest' is deprecated. See the module docs for more information", 'version': '2.9'}]
    s%s["%s"]tremoved_in_versiontremoved_at_datesBParam '%s' is deprecated. See the module docs for more informationtmsgR.R@tprefixN(	R4RERGtappendR3RR9textendtlist_deprecations(
RKRLRXtdeprecationsRNROt
sub_prefixRQt
sub_argumentst
sub_params((sJ/usr/lib/python2.7/site-packages/ansible/module_utils/common/parameters.pyR[vs(*	

0cC`shgtD]}d|^q}i}x8|j�D]*\}}|j|�|jdd�}|jdd�}|jdt�}	|dk	r�|	r�td|��n|dkr�q0nt|�s�t|t	t
f�r�td��nxp|D]h}
|j|
�|||
<|
|kr�||krE|dk	rE|j||
f�n||
||<q�q�Wq0W||fS(sReturn a two item tuple. The first is a dictionary of aliases, the second is
    a list of legal inputs.

    If a list is provided to the alias_warnings parameter, it will be filled with tuples
    (option, alias) in every case where both an option and its alias are specified.
    s_ansible_%staliasestdefaulttrequiredsBinternal error: required and default are mutually exclusive for %ss/internal error: aliases must be a list or tupleN(t	PASS_VARSR4RYRERGRFt
ValueErrorRR3RR
R;(RKRLtalias_warningstktlegal_inputstaliases_resultstvR`RaRbtalias((sJ/usr/lib/python2.7/site-packages/ansible/module_utils/common/parameters.pythandle_aliases�s*
"


N(RN(RN(Rs/bin/sh(R!N(R#swarn(R&sINFO(R)N(R+i(R-s0.0(RsdebugRRsno_log(t
__future__RRRR<t
__metaclass__tansible.module_utils._textRt/ansible.module_utils.common._collections_compatRt'ansible.module_utils.common.collectionsRt&ansible.module_utils.common.validationRtansible.module_utils.sixRRR	R
RGR7RFRct
PASS_BOOLSR5RJR[Rk(((sJ/usr/lib/python2.7/site-packages/ansible/module_utils/common/parameters.pyt<module>s8"





		/&

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]