HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
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.