Revision 77eaa0be
b/kamaki/cli.py | ||
---|---|---|
148 | 148 |
class config_list(object): |
149 | 149 |
"""List configuration options""" |
150 | 150 |
|
151 |
def update_parser(cls, parser):
|
|
151 |
def update_parser(self, parser):
|
|
152 | 152 |
parser.add_option('-a', dest='all', action='store_true', |
153 | 153 |
default=False, help='include default values') |
154 | 154 |
|
... | ... | |
198 | 198 |
class server_list(object): |
199 | 199 |
"""List servers""" |
200 | 200 |
|
201 |
def update_parser(cls, parser):
|
|
201 |
def update_parser(self, parser):
|
|
202 | 202 |
parser.add_option('-l', dest='detail', action='store_true', |
203 | 203 |
default=False, help='show detailed output') |
204 | 204 |
|
... | ... | |
220 | 220 |
class server_create(object): |
221 | 221 |
"""Create a server""" |
222 | 222 |
|
223 |
def update_parser(cls, parser):
|
|
223 |
def update_parser(self, parser):
|
|
224 | 224 |
parser.add_option('--personality', dest='personalities', |
225 | 225 |
action='append', default=[], |
226 | 226 |
metavar='PATH[,SERVER PATH[,OWNER[,GROUP,[MODE]]]]', |
... | ... | |
279 | 279 |
class server_reboot(object): |
280 | 280 |
"""Reboot a server""" |
281 | 281 |
|
282 |
def update_parser(cls, parser):
|
|
282 |
def update_parser(self, parser):
|
|
283 | 283 |
parser.add_option('-f', dest='hard', action='store_true', |
284 | 284 |
default=False, help='perform a hard reboot') |
285 | 285 |
|
... | ... | |
379 | 379 |
class flavor_list(object): |
380 | 380 |
"""List flavors""" |
381 | 381 |
|
382 |
def update_parser(cls, parser):
|
|
382 |
def update_parser(self, parser):
|
|
383 | 383 |
parser.add_option('-l', dest='detail', action='store_true', |
384 | 384 |
default=False, help='show detailed output') |
385 | 385 |
|
... | ... | |
401 | 401 |
class image_list(object): |
402 | 402 |
"""List images""" |
403 | 403 |
|
404 |
def update_parser(cls, parser):
|
|
404 |
def update_parser(self, parser):
|
|
405 | 405 |
parser.add_option('-l', dest='detail', action='store_true', |
406 | 406 |
default=False, help='show detailed output') |
407 | 407 |
|
... | ... | |
467 | 467 |
class network_list(object): |
468 | 468 |
"""List networks""" |
469 | 469 |
|
470 |
def update_parser(cls, parser):
|
|
470 |
def update_parser(self, parser):
|
|
471 | 471 |
parser.add_option('-l', dest='detail', action='store_true', |
472 | 472 |
default=False, help='show detailed output') |
473 | 473 |
|
... | ... | |
530 | 530 |
class glance_list(object): |
531 | 531 |
"""List images""" |
532 | 532 |
|
533 |
def update_parser(cls, parser):
|
|
533 |
def update_parser(self, parser):
|
|
534 | 534 |
parser.add_option('-l', dest='detail', action='store_true', |
535 | 535 |
default=False, help='show detailed output') |
536 | 536 |
parser.add_option('--container-format', dest='container_format', |
... | ... | |
575 | 575 |
class glance_register(object): |
576 | 576 |
"""Register an image""" |
577 | 577 |
|
578 |
def update_parser(cls, parser):
|
|
578 |
def update_parser(self, parser):
|
|
579 | 579 |
parser.add_option('--checksum', dest='checksum', metavar='CHECKSUM', |
580 | 580 |
help='set image checksum') |
581 | 581 |
parser.add_option('--container-format', dest='container_format', |
Also available in: Unified diff