Revision 9621c777 snf-cyclades-app/synnefo/api/management/commands/flavor-list.py
b/snf-cyclades-app/synnefo/api/management/commands/flavor-list.py | ||
---|---|---|
46 | 46 |
help = "List flavors" |
47 | 47 |
|
48 | 48 |
option_list = BaseCommand.option_list + ( |
49 |
make_option('-c', |
|
49 |
make_option( |
|
50 |
'-c', |
|
50 | 51 |
action='store_true', |
51 | 52 |
dest='csv', |
52 | 53 |
default=False, |
53 | 54 |
help="Use pipes to separate values"), |
54 |
make_option('--deleted', |
|
55 |
make_option( |
|
56 |
'--deleted', |
|
55 | 57 |
action='store_true', |
56 | 58 |
dest='deleted', |
57 | 59 |
default=False, |
58 | 60 |
help="Include deleted flavors"), |
59 |
make_option('--filter-by', |
|
61 |
make_option( |
|
62 |
'--filter-by', |
|
60 | 63 |
dest='filter_by', |
61 | 64 |
help="Filter results. Comma seperated list of key=val pairs" |
62 | 65 |
" that displayed entries must satisfy. e.g." |
63 | 66 |
" --filter-by \"cpu=1,ram!=1024\"." |
64 | 67 |
"Available keys are: %s" % ", ".join(FIELDS)) |
65 |
)
|
|
68 |
) |
|
66 | 69 |
|
67 | 70 |
def handle(self, *args, **options): |
68 | 71 |
if args: |
Also available in: Unified diff