Dashboard
PHP:
8.2.30
OS:
Linux
User:
dh_nv8b2m
/
/
usr
/
local
/
lib
/
python3.10
/
dist-packages
/
ansible
/
__pycache__
📤 Upload
📝 New File
📁 New Folder
Close
Editing: context.cpython-310.pyc
o O�h� � @ s^ d Z ddlmZ ddlmZmZ ddlmZ ddlm Z m Z dZe i �add� Z d dd�Zd S )a| Context of the running Ansible. In the future we *may* create Context objects to allow running multiple Ansible plays in parallel with different contexts but that is currently out of scope as the Ansible library is just for running the ansible command line tools. These APIs are still in flux so do not use them unless you are willing to update them with every Ansible release � )�annotations)�Mapping�Set)�is_sequence)�CLIArgs� GlobalCLIArgs)�CLIARGSc C s t �| �adS )z%Initialize the global context objectsN)r �from_optionsr )�cli_args� r �:/usr/local/lib/python3.10/dist-packages/ansible/context.py�_init_global_context s r NFc s � ��fdd�}|S )aA Closure over getting a key from CLIARGS with shallow copy functionality Primarily used in ``FieldAttribute`` where we need to defer setting the default until after the CLI arguments have been parsed This function is not directly bound to ``CliArgs`` so that it works with ``CLIARGS`` being replaced c sD t j�� d�} �s| S t| �r| d d � S t| ttf�r | �� S | S )N)�default)r �getr � isinstancer r �copy)�value�r �key�shallowcopyr r �inner- s z#cliargs_deferred_get.<locals>.innerr )r r r r r r r �cliargs_deferred_get$ s r )NF)�__doc__� __future__r �collections.abcr r �'ansible.module_utils.common.collectionsr �ansible.utils.context_objectsr r �__all__r r r r r r r �<module> s
Save
Cancel