U
    L¬÷dý  ã                   @   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   )Zeni_pathZ
eni_headerr   T)Znetplan_pathZnetplan_headerZpostcmds)Úsuperr   Ú__init__Znetwork_conf_fnr   ZNETWORK_FILE_HEADERZrenderer_configs)ÚselfÚnameZ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.)Z_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   Zcloudinit.distrosr   r   r   r   r   r   r   Ú<module>   s   