o
    wÚ7eÆ  ã                
   @   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dededededdf
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.
Úcc_timezoneÚTimezonezSet the system timezoneztimezone: US/EasternÚtimezone)ÚidÚnameÚtitleÚdescriptionÚdistrosÚ	frequencyÚexamplesÚactivate_by_schema_keysÚmetar   ÚcfgÚcloudÚargsÚreturnc                 C   sH   t |ƒdkr|d }nt |dd¡}|st d| ¡ d S |j |¡ d S )Nr   r   Fz1Skipping module named %s, no 'timezone' specified)Úlenr   Úget_cfg_option_strÚLOGÚdebugÚdistroÚset_timezone)r   r   r   r   r   © r   ú>/usr/lib/python3/dist-packages/cloudinit/config/cc_timezone.pyÚhandle(   s   
r!   )Ú__doc__ÚloggingÚ	cloudinitr   Úcloudinit.cloudr   Úcloudinit.configr   Úcloudinit.config.schemar   r   Úcloudinit.distrosr   Úcloudinit.settingsr   ÚMODULE_DESCRIPTIONr   Ú__annotations__Ú	getLoggerÚ__name__r   ÚstrÚlistr!   r   r   r   r    Ú<module>   s,   ÿö
"