HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux ns565604.ip-54-39-133.net 4.18.0-553.50.1.el8_10.x86_64 #1 SMP Tue Apr 15 08:09:22 EDT 2025 x86_64
User: greer489 (1034)
PHP: 8.3.19
Disabled: NONE
Upload Files
File: //usr/lib/python3.6/site-packages/cloudinit/config/__pycache__/cc_locale.cpython-36.pyc
3

\�meo�	@s�UdZddlZddlmZddlmZddlmZddlm	Z	ddl
mZmZddl
mZd	gZd
dded
�eed�ed�gegd�Zeee�Zeje�Zee	eedd�dd�ZdS)zLocale: set system locale�N)�dedent)�util)�Cloud)�Config)�
MetaSchema�get_meta_doc)�PER_INSTANCE�allZ	cc_localeZLocalezSet 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�distrosZexamplesZ	frequencyZactivate_by_schema_keys)r�cfg�cloud�args�returncCsnt|�dkr|d}ntj|d|j��}tj|�rDtjd||�dStjd|�tj|d�}|jj||�dS)Nr�localez0Skipping module named %s, disabled by config: %szSetting locale to %sZlocale_configfile)	�lenrZget_cfg_option_strZ
get_localeZis_false�LOG�debugZdistroZapply_locale)rrrrrZlocale_cfgfile�r�/usr/lib/python3.6/cc_locale.py�handle7s


r)�__doc__Zlogging�textwraprZ	cloudinitrZcloudinit.cloudrZcloudinit.configrZcloudinit.config.schemarrZcloudinit.settingsrr�metaZ	getLogger�__name__r�str�listrrrrr�<module>	s.