Revision bdff03d5 kamaki/cli/commands/network.py
b/kamaki/cli/commands/network.py | ||
---|---|---|
368 | 368 |
@errors.generic.all |
369 | 369 |
@errors.cyclades.connection |
370 | 370 |
def _run(self, subnet_id): |
371 |
r = self.client.get_subnet_details(subnet_id) |
|
372 |
r = self.client.update_subnet( |
|
373 |
subnet_id, r['network_id'], name=self['new_name']) |
|
371 |
r = self.client.update_subnet(subnet_id, name=self['new_name']) |
|
374 | 372 |
self._print(r, self.print_dict) |
375 | 373 |
|
376 | 374 |
def main(self, subnet_id): |
Also available in: Unified diff