Current File : //lib/python2.7/site-packages/cloudinit/sources/DataSourceRbxCloud.pyo |
�
oB�]c @ s d Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l m
Z
e j e � Z
d Z d � Z d � Z d
� Z d � Z d � Z d
� Z d � Z d � Z d e j f d � � YZ e e j f f g Z d � Z d S( sr
This file contains code used to gather the user data passed to an
instance on rootbox / hyperone cloud platforms
i����N( t log( t sources( t util( t EventTypes
/etc/hostsc C s= t j t d t �} | r, t j d � t St j d � t S( Nt quiets5 /etc/hosts exists - setting manage_etc_hosts to Falses= /etc/hosts does not exists - setting manage_etc_hosts to True( R t load_filet ETC_HOSTSt Truet LOGt debugt False( t hosts( ( sH /usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceRbxCloud.pyt get_manage_etc_hosts s
c C sS | j d � } t | d � d >t | d � d >t | d � d >t | d � S( Nt .i i i i i i i ( t splitt int( t addrt parts( ( sH /usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceRbxCloud.pyt ip2int"