Skip to content

Commit

Permalink
Adds default arg for ignore_nodes arg
Browse files Browse the repository at this point in the history
  • Loading branch information
djperrefort committed Oct 13, 2023
1 parent fa5696f commit 8c3e21a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shinigami/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ def __init__(self) -> None:
scan = subparsers.add_parser('scan', parents=[common], help='terminate processes on one or more clusters')
scan.set_defaults(callable=Application.scan)
scan.add_argument('-c', '--clusters', nargs='+', required=True, help='cluster names to scan')
scan.add_argument('-i', '--ignore-nodes', nargs='*', help='ignore given nodes')
scan.add_argument('-i', '--ignore-nodes', nargs='*', default=[], help='ignore given nodes')
scan.add_argument('-u', '--uid-whitelist', nargs='+', type=loads, default=[0], help='user IDs to scan')

# Subparser for the `Application.terminate` method
terminate = subparsers.add_parser('terminate', parents=[common], help='terminate processes on a single node')
terminate.set_defaults(callable=Application.terminate)
terminate.add_argument('-n', '--nodes', nargs='+', required=True, help='the DNS name of the node to terminate')
terminate.add_argument('-u', '--uid-whitelist', nargs='+', type=loads, required=True, help='user IDs to scan')
terminate.add_argument('-u', '--uid-whitelist', nargs='+', type=loads, default=[0], help='user IDs to scan')


class Application:
Expand Down

0 comments on commit 8c3e21a

Please sign in to comment.