<s> from lib import actions <EOL> __all__ = [ <EOL> '<STR_LIT>' , <EOL> ] <EOL> class GetImageByNameAction ( actions . BaseAction ) : <EOL> def run ( self , region , location , image_name ) : <EOL> driver = self . _get_compute_driver ( region ) <EOL> location = driver . ex_get_location_by_id ( location ) <EOL> images = driver . list_images ( location = location ) <EOL> image = list ( filter ( lambda x : x . name == image_name , <EOL> images ) ) [ <NUM_LIT:0> ] <EOL> return self . resultsets . formatter ( image ) </s>
