HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //lib/python3.6/site-packages/cloudinit/config/__pycache__/cc_apt_pipelining.cpython-36.pyc
3

\�me�
�	@s�UdZddlZddlmZddlmZddlmZddlm	Z	ddl
mZmZddl
mZeje�ZeZd	d
gZdZdZd
dded�eedddgdgd�Zeee�Zee	eedd�dd�Zdd�ZdS)z)Apt Pipelining: configure apt pipelining.�N)�dedent)�util)�Cloud)�Config)�
MetaSchema�get_meta_doc)�PER_INSTANCEZubuntuZdebianz+/etc/apt/apt.conf.d/90cloud-init-pipeliningzQ//Written by cloud-init per 'apt_pipelining'
Acquire::http::Pipeline-Depth "%s";
Zcc_apt_pipeliningzApt PipeliningzConfigure apt pipelininga        This module configures apt's ``Acquite::http::Pipeline-Depth`` option,
        which controls how apt handles HTTP pipelining. It may be useful for
        pipelining to be disabled, because some web servers, such as S3 do not
        pipeline properly (LP: #948461).

        Value configuration options for this module are:

        * ``os``: (Default) use distro default
        * ``false`` disable pipelining altogether
        * ``<number>``: Manually specify pipeline depth. This is not recommended.zapt_pipelining: falsezapt_pipelining: oszapt_pipelining: 3�apt_pipelining)�id�name�title�description�distros�	frequencyZexamplesZactivate_by_schema_keys)r�cfg�cloud�args�returncCst|jdd�}t|�j�j�}|dkr2tdtt�n>|dkr>dS|dd�td	d
�D�krdt|tt�ntjd|�dS)
Nr	�osZfalse�0�none�	unchangedcSsg|]}t|��qS�)�str)�.0�brr�'/usr/lib/python3.6/cc_apt_pipelining.py�
<listcomp>Fszhandle.<locals>.<listcomp>r�z%Invalid option for apt_pipelining: %s)rrr)	�getr�lower�strip�write_apt_snippet�LOG�DEFAULT_FILE�rangeZwarning)rrrrZapt_pipe_valueZapt_pipe_value_srrr�handle>sr&cCs&t|}tj||�|jd||�dS)z0Writes f_name with apt pipeline depth 'setting'.z+Wrote %s with apt pipeline depth setting %sN)�APT_PIPE_TPLrZ
write_file�debug)Zsetting�logZf_nameZ
file_contentsrrrr"Lsr")�__doc__Zlogging�textwraprZ	cloudinitrZcloudinit.cloudrZcloudinit.configrZcloudinit.config.schemarrZcloudinit.settingsrZ	getLogger�__name__r#rrr$r'�metar�listr&r"rrrr�<module>s4