Revision 77bf75fe kamaki/cli/commands/networking.py
b/kamaki/cli/commands/networking.py | ||
---|---|---|
107 | 107 |
@errors.cyclades.date |
108 | 108 |
def _run(self): |
109 | 109 |
nets = self.client.list_networks() |
110 |
nets = self._filter_by_name(nets) |
|
111 |
nets = self._filter_by_id(nets) |
|
110 | 112 |
if not self['detail']: |
111 |
for net in nets: |
|
112 |
net = dict(id=net['id'], name=net['name']) |
|
113 |
nets = [dict(id=net['id'], name=net['name']) for net in nets] |
|
113 | 114 |
self._print(nets) |
114 | 115 |
|
115 | 116 |
def main(self): |
Also available in: Unified diff