![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3/dist-packages/cloudinit/sources/__pycache__/ |
o }��fg � @ s� d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z m Z mZ ddlm Z mZ e�e�ZdZdd� Zd ed efdd�Zd eje fd 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�} | rt�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 �F/usr/lib/python3/dist-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 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'