<s> """<STR_LIT>""" <EOL> from . import cloudbase <EOL> import copy <EOL> import logging <EOL> class ImageProvider ( cloudbase . Provider ) : <EOL> def __init__ ( self , cloud_prop ) : <EOL> cloudbase . Provider . __init__ ( self , '<STR_LIT:image>' , cloud_prop ) <EOL> self . log = logging . getLogger ( '<STR_LIT>' ) <EOL> @ classmethod <EOL> def get_provider_key ( cls , cloud_prop ) : <EOL> """<STR_LIT>""" <EOL> return ( "<STR_LIT:image>" , ) <EOL> def init_instance ( self , cloud_prop ) : <EOL> """<STR_LIT>""" <EOL> return self . _updated_prop ( cloud_prop ) <EOL> def _updated_prop ( self , cloud_prop ) : <EOL> ip = cloud_prop . get ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> vm_name = cloud_prop [ "<STR_LIT>" ] <EOL> out_prop = dict ( cloud = copy . deepcopy ( cloud_prop ) , <EOL> host = vm_name , private = dict ( ip = ip , dns = ip ) ) <EOL> out_prop [ "<STR_LIT>" ] [ "<STR_LIT>" ] = vm_name <EOL> return out_prop <EOL> def get_instance_status ( self , prop ) : <EOL> """<STR_LIT>""" <EOL> return "<STR_LIT>" <EOL> def terminate_instances ( self , props ) : <EOL> """<STR_LIT>""" <EOL> return <EOL> def wait_instances ( self , props , wait_state = "<STR_LIT>" ) : <EOL> """<STR_LIT>""" <EOL> return dict ( ( prop [ "<STR_LIT>" ] , self . _updated_prop ( prop ) ) for prop in props ) </s>
