Viewing File: /usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceCloudSigma.pyc
ó
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"