ansible
2.9.27
About: Ansible is an IT Configuration Management, Deployment \ About: Ansible (2.x) is an IT Configuration Management, Deployment & Orchestration tool.
![]() ![]() |
Functions | |
def | _init_global_context (cli_args) |
def | cliargs_deferred_get (key, default=None, shallowcopy=False) |
Variables | |
__metaclass__ = type | |
tuple | __all__ = ('CLIARGS',) |
CLIARGS = CLIArgs({}) | |
|
private |
Initialize the global context objects
Definition at line 32 of file context.py.
References ansible.context._init_global_context().
Referenced by ansible.context._init_global_context().
def ansible.context.cliargs_deferred_get | ( | key, | |
default = None , |
|||
shallowcopy = False |
|||
) |
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
Definition at line 38 of file context.py.
References ansible.context.cliargs_deferred_get(), and ansible.module_utils.common.collections.is_sequence().
Referenced by ansible.context.cliargs_deferred_get().
|
private |
Definition at line 23 of file context.py.
|
private |
Definition at line 6 of file context.py.
ansible.context.CLIARGS = CLIArgs({}) |
Definition at line 27 of file context.py.