o
    wÚ7eý  ã                   @   s.   d dl Z d dlmZmZ G dd„ dejƒZdS )é    N)ÚPREFERRED_NTP_CLIENTSÚdebianc                       s(   e Zd Z‡ fdd„Zedd„ ƒZ‡  ZS )ÚDistroc                    sN   t t| ƒ |||¡ dddœ| _| jd tjdœ| jd tjddœdœ| _d S )	Nz+/etc/network/interfaces.d/50-cloud-init.cfgz/etc/netplan/50-cloud-init.yaml)ÚeniÚnetplanr   )Úeni_pathÚ
eni_headerr   T)Únetplan_pathÚnetplan_headerÚpostcmds)Úsuperr   Ú__init__Únetwork_conf_fnr   ÚNETWORK_FILE_HEADERÚrenderer_configs)ÚselfÚnameÚcfgÚpaths©Ú	__class__© ú:/usr/lib/python3/dist-packages/cloudinit/distros/ubuntu.pyr      s   þþýûzDistro.__init__c                 C   s   | j s	t t¡| _ | j S )z5The preferred ntp client is dependent on the version.)Ú_preferred_ntp_clientsÚcopyÚdeepcopyr   )r   r   r   r   Úpreferred_ntp_clients%   s   zDistro.preferred_ntp_clients)Ú__name__Ú
__module__Ú__qualname__r   Úpropertyr   Ú__classcell__r   r   r   r   r      s    r   )r   Úcloudinit.distrosr   r   r   r   r   r   r   Ú<module>   s   