HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-10-0-8-47 6.8.0-1021-aws #23~22.04.1-Ubuntu SMP Tue Dec 10 16:31:58 UTC 2024 aarch64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.22
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/cloudinit/config/__pycache__/cc_locale.cpython-310.pyc
o

�Ad��@s�UdZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZm
Z
ddlmZd	gZd
dded
�eed�ed�gegd�Zeed<e
e�Zdede
dedededdfdd�ZdS)zLocale: set system locale�)�Logger)�dedent)�util)�Cloud)�Config)�
MetaSchema�get_meta_doc)�PER_INSTANCE�all�	cc_locale�LocalezSet system localez|        Configure the system locale and apply it system wide. By default use
        the locale specified by the datasource.zL            # Set the locale to ar_AE
            locale: ar_AE
            z�            # Set the locale to fr_CA in /etc/alternate_path/locale
            locale: fr_CA
            locale_configfile: /etc/alternate_path/locale
            )�id�name�title�description�distros�examples�	frequency�activate_by_schema_keys�metar�cfg�cloud�log�args�returnNcCsnt|�dkr|d}n	t�|d|���}t�|�r"|�d||�dS|�d|�t�|d�}|j�||�dS)Nr�localez0Skipping module named %s, disabled by config: %szSetting locale to %s�locale_configfile)�lenr�get_cfg_option_str�
get_locale�is_false�debug�distro�apply_locale)rrrrrr�locale_cfgfile�r%�</usr/lib/python3/dist-packages/cloudinit/config/cc_locale.py�handle6s

�r')�__doc__�loggingr�textwrapr�	cloudinitr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemarr�cloudinit.settingsr	rr�__annotations__�str�listr'r%r%r%r&�<module>sP�����������