| Server IP : 68.178.164.50 / Your IP : 216.73.216.142 Web Server : Apache System : Linux 50.164.178.68.host.secureserver.net 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64 User : rathinambschool ( 1053) PHP Version : 8.2.30 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/cloudinit/distros/parsers/__pycache__/ |
Upload File : |
a
'�Dg�
� @ s* d dl mZ d dlmZ G dd� d�ZdS )� )�StringIO)�chop_commentc @ sD e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� Zdd� Zd
d� Z dS )� HostsConfc C s || _ d | _d S �N)�_text� _contents)�self�text� r
�C/usr/lib/python3.9/site-packages/cloudinit/distros/parsers/hosts.py�__init__ s zHostsConf.__init__c C s | j d u r| �| j�| _ d S r )r �_parser )r r
r
r �parse s
zHostsConf.parsec C sV | � � g }| jD ]>\}}|dkr|\}}t|�r|d |kr|�|dd � � q|S )N�optionr � )r r �len�append)r �ip�options� line_type�
components�pieces�_tailr
r
r � get_entry s zHostsConf.get_entryc C sx | � � g }| jD ]Z\}}|dkr4|�||f� qq|\}}t|�rR|d |krRqt|�r|�|t|�f� q|| _d S )Nr r )r r r r �list)r r Z n_entriesr r r r r
r
r �del_entries"