
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
3
\me              	   @   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
eZ ej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_INSTANCEz[Sets the system `timezone <https://www.iana.org/time-zones>`_ based on the
value provided.
Zcc_timezoneZTimezonezSet the system timezoneztimezone: US/Easterntimezone)idnametitledescriptionZdistrosZ	frequencyZexamplesZactivate_by_schema_keys)r   cfgcloudargsreturnc             C   sH   t |dkr|d }ntj|dd}|s8tjd|  d S |j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.6/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_DESCRIPTIONmetaZ	getLogger__name__r   strlistr   r   r   r   r   <module>   s&   
