
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
3
\meo              	   @   s   U d Z ddlZddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZmZ ddlmZ d	gZd
ddedeededgeg dZeeeZ ejeZee	eeddddZdS )zLocale: set system locale    N)dedent)util)Cloud)Config)
MetaSchemaget_meta_doc)PER_INSTANCEallZ	cc_localeZLocalezSet 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distrosZexamplesZ	frequencyZactivate_by_schema_keys)r   cfgcloudargsreturnc             C   sn   t |dkr|d }ntj|d|j }tj|rDtjd| | d S tjd| tj|d}|jj|| d S )Nr   localez0Skipping module named %s, disabled by config: %szSetting locale to %sZlocale_configfile)	lenr   Zget_cfg_option_strZ
get_localeZis_falseLOGdebugZdistroZapply_locale)r   r   r   r   r   Zlocale_cfgfile r   /usr/lib/python3.6/cc_locale.pyhandle7   s    


r   )__doc__Zloggingtextwrapr   Z	cloudinitr   Zcloudinit.cloudr   Zcloudinit.configr   Zcloudinit.config.schemar   r   Zcloudinit.settingsr   r   metaZ	getLogger__name__r   strlistr   r   r   r   r   <module>	   s.   
