Current File : //usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceCloudSigma.pyo |
�
oB�]c @ s� d d l m Z d d l Z d d l m Z m Z d d l m Z d d l m Z d d l m
Z
e j e � Z
d e j f d � � YZ e Z e e j f f g Z d � Z d S(
i����( t b64decodeN( t Cepkot SERIAL_PORT( t log( t sources( t utilt DataSourceCloudSigmac B s\ e Z d Z d Z d � Z d � Z d � Z d � Z e e e d � Z d � Z
d � Z RS( s�
Uses cepko in order to gather the server context from the VM.
For more information about CloudSigma's Server Context:
http://cloudsigma-docs.readthedocs.org/en/latest/server_context.html
t
CloudSigmac C s2 t � | _ d | _ t j j | | | | � d S( Nt ( R t cepkot ssh_public_keyR t
DataSourcet __init__( t selft sys_cfgt distrot paths( ( sJ /usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceCloudSigma.pyR s c C sS t j d � t j d � } | s3 t j d � t St j d | � d | j � k S( s
Uses dmi data to detect if this instance of cloud-init is running
in the CloudSigma's infrastructure.
s0 determining hypervisor product name via dmi datas system-product-names- system-product-name not available in dmi datas detected hypervisor as %st
cloudsigma( t LOGt debugR t
read_dmi_datat Falset lower( R
t sys_product_name( ( sJ /usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceCloudSigma.pyt is_running_in_cloudsigma"