| Conditions | 2 |
| Total Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | from lib import actions |
||
| 10 | def run(self, region, location, image_name): |
||
| 11 | driver = self._get_compute_driver(region) |
||
| 12 | location = driver.ex_get_location_by_id(location) |
||
| 13 | images = driver.list_images(location=location) |
||
| 14 | image = list(filter(lambda x: x.name == image_name, |
||
| 15 | images))[0] |
||
| 16 | return self._format_response_obj(image) |
||
| 17 |