3 \¼met ã @ s‚ d dl Z d dlZd dlmZ d dlmZmZ d dlmZ d dl m Z mZ e je ƒZG dd„ dejƒZeZeejffgZdd „ ZdS ) é N)Ú b64decode)ÚdmiÚsources)ÚDataSourceHostname)ÚSERIAL_PORTÚCepkoc @ sR e Zd ZdZdZdd„ Zedd„ ƒZdd„ Zd d „ Z ddd „Z dd„ Zdd„ ZdS )ÚDataSourceCloudSigmazÍ 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 Z CloudSigmac C s$ t ƒ | _d| _tjj| |||ƒ d S )NÚ )r ÚcepkoÚssh_public_keyr Ú DataSourceÚ__init__)ÚselfZsys_cfgZdistroÚpaths© r ú*/usr/lib/python3.6/DataSourceCloudSigma.pyr s zDataSourceCloudSigma.__init__c C s> t jdƒ tjdƒ} | s&t