3 \�me� � @ s� U d Z ddlZddlmZ ddlmZ ddlmZ ddlm Z m Z ddlmZ ddl mZ d Zd ddeeged gdgd�Ze e e�Z eje�Zeeeedd�dd�ZdS )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. Zcc_timezoneZTimezonezSet the system timezoneztimezone: US/Eastern�timezone)�id�name�title�descriptionZdistrosZ frequencyZexamplesZactivate_by_schema_keys)r �cfg�cloud�args�returnc C sH t |�dkr|d }ntj|dd�}|s8tjd| � d S |jj|� d S )Nr r Fz1Skipping module named %s, no 'timezone' specified)�lenr Zget_cfg_option_str�LOG�debugZdistroZset_timezone)r r r r r � r �!/usr/lib/python3.6/cc_timezone.py�handle) s r )�__doc__ZloggingZ cloudinitr Zcloudinit.cloudr Zcloudinit.configr Zcloudinit.config.schemar r Zcloudinit.distrosr Zcloudinit.settingsr ZMODULE_DESCRIPTION�metaZ getLogger�__name__r �str�listr r r r r �<module> s&