Skip to content

Commit 0d9ff4b

Browse files
author
Juliya Smith
committed
Set defaults in mian
1 parent 8ce1816 commit 0d9ff4b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

c42seceventcli/aed/main.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ def _create_destination_args(args):
7272
destination_args.destination = args.destination
7373
destination_args.destination_port = args.destination_port
7474
destination_args.destination_protocol = args.destination_protocol
75+
76+
if destination_args.destination_port is None:
77+
destination_args.destination_port = 514
78+
79+
if destination_args.destination_protocol is None:
80+
destination_args.destination_protocol = "TCP"
81+
7582
return destination_args
7683

7784

c42seceventcli/common/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ def get_error_logger(service_name):
6868
class DestinationArgs(object):
6969
destination_type = None
7070
destination = None
71-
destination_port = 514
72-
destination_protocol = "TCP"
71+
destination_port = None
72+
destination_protocol = None
7373

7474

7575
def get_logger(formatter, service_name, destination_args):

0 commit comments

Comments
 (0)