Your IP : 216.73.217.13


Current Path : /lib/python3/dist-packages/cloudinit/config/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/cloudinit/config/__pycache__/cc_locale.cpython-38.pyc

U

�Ad��	@s�UdZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZm
Z
ddlmZd	gZd
dded
�eed�ed�gegd�Zeed<e
e�Zee
eeedd�dd�ZdS)zLocale: set system locale�)�Logger)�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�titleZdescription�distrosZexamplesZ	frequencyZactivate_by_schema_keys�metaN)r�cfg�cloud�log�args�returncCsnt|�dkr|d}nt�|d|���}t�|�rD|�d||�dS|�d|�t�|d�}|j�||�dS)Nr�localez0Skipping module named %s, disabled by config: %szSetting locale to %sZlocale_configfile)�lenrZget_cfg_option_strZ
get_localeZis_false�debugZdistroZapply_locale)rrrrrrZlocale_cfgfile�r�</usr/lib/python3/dist-packages/cloudinit/config/cc_locale.py�handle6s

�r)�__doc__Zloggingr�textwraprZ	cloudinitrZcloudinit.cloudrZcloudinit.configrZcloudinit.config.schemarrZcloudinit.settingsr	rr�__annotations__�str�listrrrrr�<module>	sB������