
    fo              
           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d<    ee      Z  ej$                  e      Zdede	dededdf
dZy)zLocale: set system locale    N)dedent)util)Cloud)Config)
MetaSchemaget_meta_doc)PER_INSTANCEall	cc_locale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distrosexamples	frequencyactivate_by_schema_keysmetar   cfgcloudargsreturnc                 `   t        |      dk7  r|d   }n%t        j                  |d|j                               }t        j                  |      rt
        j                  d| |       y t
        j                  d|       t        j                  |d      }|j                  j                  ||       y )Nr   localez0Skipping module named %s, disabled by config: %szSetting locale to %slocale_configfile)	lenr   get_cfg_option_str
get_localeis_falseLOGdebugdistroapply_locale)r   r   r   r   r   locale_cfgfiles         </usr/lib/python3/dist-packages/cloudinit/config/cc_locale.pyhandler'   7   s    
4yA~a((h8H8H8JK}}V		>f	
 	II$f-,,S2EFN	LLfn5    )__doc__loggingtextwrapr   	cloudinitr   cloudinit.cloudr   cloudinit.configr   cloudinit.config.schemar   r   cloudinit.settingsr	   r   r   __annotations__	getLogger__name__r!   strlistr'    r(   r&   <module>r7      s         ! # < +'  	3
 	
 		
 !5j : t
g!6 66 6% 6t 6 6r(   