File: //usr/lib/python3/dist-packages/cloudinit/config/__pycache__/cc_locale.cpython-39.pyc
a
��`� � @ s� d Z ddlmZ ddlmZ ddlmZmZ ddlm Z e Z
dgZddd ed
�eed�ed�ge
d
ddd�ddd�d�d� Zee�Z dd� Z
dS )zLocale: set system locale� )�dedent)�util)�get_schema_doc�validate_cloudconfig_schema)�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
�object�stringz5The locale to set as the system's locale (e.g. ar_PS))�type�descriptionz_The file in which to write the locale configuration (defaults to the distro's default location))�locale�locale_configfile) �id�name�titler �distrosZexamples� frequencyr
Z
propertiesc C sx t |�dkr|d }nt�|d|�� �}t�|�rD|�d| |� d S t|t� |�d|� t�|d�}|j� ||� d S )Nr r z0Skipping module named %s, disabled by config: %szSetting locale to %sr
)
�lenr �get_cfg_option_str�
get_locale�is_false�debugr �schema�distro�apply_locale)r �cfg�cloud�log�argsr Zlocale_cfgfile� r �</usr/lib/python3/dist-packages/cloudinit/config/cc_locale.py�handle? s
�
r! N)�__doc__�textwrapr � cloudinitr Zcloudinit.config.schemar r �cloudinit.settingsr r r r r! r r r r �<module> s8 ������(