| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/cloudinit/sources/__pycache__/ |
Upload File : |
a
���i� � @ s� d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z m
Z
mZ ddlm
Z
mZ e�e�ZdZdd� Zeed �d
d�Zeje d�d
d�Zdd� Zdd� Zdd� Zdd� Zdd� ZG dd� de j�Zee j ffgZ!dd� Z"dS )zr
This file contains code used to gather the user data passed to an
instance on rootbox / hyperone cloud platforms
� N)�IPv4Address)�sources�subp�util)�
EventScope� EventTypez
/etc/hostsc C s. t jtdd�} | r t�d� dS t�d� dS )NT)�quietz5/etc/hosts exists - setting manage_etc_hosts to FalseFz=/etc/hosts does not exists - setting manage_etc_hosts to True)r �load_text_file� ETC_HOSTS�LOG�debug)�hosts� r �H/usr/lib/python3.9/site-packages/cloudinit/sources/DataSourceRbxCloud.py�get_manage_etc_hosts s
r )�inc�returnc C s t ttt| ��| ��S �N)�strr �int)�addrr r r r �increment_ip# s r )r c C s | t | d�t | d�gS )z�Return a list of 3 IP addresses: [addr, addr + 2, addr + 3]
@param addr: an object that is passed to IPvAddress
@return: list of strings
� � )r )r r r r �
get_three_ips'