Commit 0fc85a36 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Enrich servers-list to list only suspended servers

add new option `--suspended` in servers-list command to filter output suspended
servers
parent a022973e
......@@ -49,6 +49,11 @@ class Command(BaseCommand):
dest='csv',
default=False,
help="Use pipes to separate values"),
make_option('--suspended',
action='store_true',
dest='suspended',
default=False,
help="List only suspended servers"),
make_option('--build',
action='store_true',
dest='build',
......@@ -79,6 +84,9 @@ class Command(BaseCommand):
else:
servers = servers.filter(deleted=False)
if options['suspended']:
servers = servers.filter(suspended=True)
if options['build']:
servers = servers.filter(operstate='BUILD')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment