Ensure no arguments are passed to list_interfaces()
This commit is contained in:
parent
2b782bbdca
commit
5196c2e129
@ -7,7 +7,7 @@ from iottb.logger import logger
|
|||||||
from iottb.subcommands.add_device import setup_init_device_root_parser
|
from iottb.subcommands.add_device import setup_init_device_root_parser
|
||||||
from iottb.subcommands.capture import setup_capture_parser
|
from iottb.subcommands.capture import setup_capture_parser
|
||||||
from iottb.utils.tcpdump_utils import list_interfaces
|
from iottb.utils.tcpdump_utils import list_interfaces
|
||||||
from definitions import IOTTB_HOME_ABS, ReturnCodes
|
from iottb.definitions import IOTTB_HOME_ABS, ReturnCodes
|
||||||
|
|
||||||
|
|
||||||
######################
|
######################
|
||||||
@ -28,7 +28,7 @@ def setup_argparse():
|
|||||||
|
|
||||||
interfaces_parser = subparsers.add_parser('list-interfaces', aliases=['li', 'if'],
|
interfaces_parser = subparsers.add_parser('list-interfaces', aliases=['li', 'if'],
|
||||||
help='List available network interfaces.')
|
help='List available network interfaces.')
|
||||||
interfaces_parser.set_defaults(func=list_interfaces)
|
interfaces_parser.set_defaults(func=list_interfaces())
|
||||||
|
|
||||||
return root_parser
|
return root_parser
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user