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
parent a022973e
...@@ -49,6 +49,11 @@ class Command(BaseCommand): ...@@ -49,6 +49,11 @@ class Command(BaseCommand):
dest='csv', dest='csv',
default=False, default=False,
help="Use pipes to separate values"), help="Use pipes to separate values"),
help="List only suspended servers"),
make_option('--build', make_option('--build',
action='store_true', action='store_true',
dest='build', dest='build',
...@@ -79,6 +84,9 @@ class Command(BaseCommand): ...@@ -79,6 +84,9 @@ class Command(BaseCommand):
else: else:
servers = servers.filter(deleted=False) servers = servers.filter(deleted=False)
if options['suspended']:
servers = servers.filter(suspended=True)
if options['build']: if options['build']:
servers = servers.filter(operstate='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