HEX
Server: Apache/2.4.67 (Debian)
System: Linux vps-b2547eb4 6.1.0-41-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
User: root (0)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/cloudinit/config/__pycache__/cc_locale.cpython-311.pyc
�

܍~c����UdZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZm
Z
ddlmZd	gZd
dded
��eed��ed��gegd�Zeed<e
e��Zdede
dedededdfd�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�returnNc�t�t|��dkr	|d}n(tj|d|�����}tj|��r|�d||��dS|�d|��tj|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_cfgfiles       �</usr/lib/python3/dist-packages/cloudinit/config/cc_locale.py�handler(6s����4�y�y�A�~�~��a�����(��h��8H�8H�8J�8J�K�K���}�V�����	�	�>��f�	
�	
�	
�	���I�I�$�f�-�-�-��,�S�2E�F�F�N�	�L���f�n�5�5�5�5�5�)�__doc__�loggingr�textwrapr�	cloudinitr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemarr	�cloudinit.settingsr
rr�__annotations__�str�listr(�r)r'�<module>r6sr�� ���������������������!�!�!�!�!�!�#�#�#�#�#�#�<�<�<�<�<�<�<�<�+�+�+�+�+�+��'����
 ��6�	3���
���
�	
�	
�	��
�	
�	
���!�5���j����:�,�t�
�
��6�

�6��6�#(�6�/5�6�=A�6�	�6�6�6�6�6�6r)