܍~c UdZddlmZddlmZddlmZddlmZddl m Z ddl m Z m Z ddlmZd gZd d d ed eededgegdZe ed<e eZdede dedededdf dZdS)zLocale: set system locale)Logger)dedent)util)Cloud)Config) MetaSchema get_meta_doc) PER_INSTANCEall cc_localeLocalezSet 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 )idnametitle descriptiondistrosexamples frequencyactivate_by_schema_keysmetarcfgcloudlogargsreturnNctt|dkr |d}n(tj|d|}tj|r|d||dS|d|tj|d}|j||dS)Nrlocalez0Skipping module named %s, disabled by config: %szSetting locale to %slocale_configfile)lenrget_cfg_option_str get_localeis_falsedebugdistro apply_locale)rrrrrrlocale_cfgfiles f    II$f---,S2EFFN Lfn55555)__doc__loggingrtextwrapr cloudinitrcloudinit.cloudrcloudinit.configrcloudinit.config.schemarr cloudinit.settingsr rr__annotations__strlistr(r)r'r6sr !!!!!!######<<<<<<<<++++++ '   6 3       !5j: ,t  6 66#(6/56=A6 666666r)