Revision a8b13805
b/kamaki/cli/commands/volume.py | ||
---|---|---|
134 | 134 |
@errors.cyclades.connection |
135 | 135 |
def _run(self): |
136 | 136 |
r = [img for img in self.client.list_images(detail=True) if ( |
137 |
getattr(img, 'is_snapshot', False) in ('True', ))]
|
|
137 |
img.get('is_snapshot', False) in ('True', ))]
|
|
138 | 138 |
if not self['detail']: |
139 | 139 |
r = [dict(name=img['name'], id=img['id']) for img in r] |
140 | 140 |
self._print(r) |
Also available in: Unified diff