HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //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.