def __get_image(conn, vm_):
 img = config.get_cloud_config_value('image', vm_, __opts__, default='debian-7', search_global=False)
 return conn.ex_get_image(img)

def __get_image ( conn , vm_ ) : img = config . get_cloud_config_value ( 'image' , vm_ , __opts__ , default = 'debian-7' , search_global = False ) return conn . ex_get_image ( img )
the get_image for gce allows partial name matching and returns a libcloud object .