
    f              
           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j$                  e      Zdededededdf
dZy)z!Timezone: Set the system timezone    N)util)Cloud)Config)
MetaSchemaget_meta_doc)ALL_DISTROS)PER_INSTANCEz[Sets the system `timezone <https://www.iana.org/time-zones>`_ 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                     t        |      dk7  r|d   }nt        j                  |dd      }|st        j	                  d|        y |j
                  j                  |       y )Nr   r   Fz1Skipping module named %s, no 'timezone' specified)lenr   get_cfg_option_strLOGdebugdistroset_timezone)r   r   r   r   r   s        >/usr/lib/python3/dist-packages/cloudinit/config/cc_timezone.pyhandler"   )   sS    
4yA~7**3
EB		EtL 
LLh'    )__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!   <module>r3      s    (   ! # < ) +  &%} !+|j  t
g!( (6 (% (t ( (r#   