Revision 236e7d08 kamaki/cli/commands/cyclades_cli.py
b/kamaki/cli/commands/cyclades_cli.py | ||
---|---|---|
85 | 85 |
|
86 | 86 |
|
87 | 87 |
class _init_cyclades(_command_init): |
88 |
def main(self, service='compute'):
|
|
88 |
def _run(self, service='compute'):
|
|
89 | 89 |
token = self.config.get(service, 'token')\ |
90 | 90 |
or self.config.get('global', 'token') |
91 | 91 |
base_url = self.config.get(service, 'url')\ |
92 | 92 |
or self.config.get('global', 'url') |
93 | 93 |
self.client = CycladesClient(base_url=base_url, token=token) |
94 | 94 |
|
95 |
def main(self, service='compute'): |
|
96 |
self._run(service) |
|
97 |
|
|
95 | 98 |
|
96 | 99 |
@command(server_cmds) |
97 | 100 |
class server_list(_init_cyclades): |
Also available in: Unified diff