U
    L¬÷dÆ  ã                	   @   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	m
Z
 ddlmZ ddlmZ d	Zd
ddeegedgdgdœZe	ed< e
eƒZ e e¡Zeeeeddœdd„ZdS )z!Timezone: Set the system timezoneé    N)Úutil)ÚCloud)ÚConfig)Ú
MetaSchemaÚget_meta_doc)ÚALL_DISTROS)ÚPER_INSTANCEz6Sets the system timezone based on the value provided.
Zcc_timezoneZTimezonezSet the system timezoneztimezone: US/EasternÚtimezone)ÚidÚnameÚtitleZdescriptionZdistrosZ	frequencyZexamplesZactivate_by_schema_keysÚmeta)r   ÚcfgÚcloudÚargsÚreturnc                 C   sH   t |ƒdkr|d }nt |dd¡}|s8t d| ¡ d S |j |¡ d S )Nr   r	   Fz1Skipping module named %s, no 'timezone' specified)Úlenr   Zget_cfg_option_strÚLOGÚdebugZdistroZset_timezone)r   r   r   r   r	   © r   ú>/usr/lib/python3/dist-packages/cloudinit/config/cc_timezone.pyÚhandle(   s    
r   )Ú__doc__ZloggingZ	cloudinitr   Zcloudinit.cloudr   Zcloudinit.configr   Zcloudinit.config.schemar   r   Zcloudinit.distrosr   Zcloudinit.settingsr   ZMODULE_DESCRIPTIONr   Ú__annotations__Z	getLoggerÚ__name__r   ÚstrÚlistr   r   r   r   r   Ú<module>   s*   ÿö
