@@ -28,7 +28,7 @@ def get_parsed_args():
28
28
return options , args
29
29
30
30
def get_version ():
31
- return "3.0.3 "
31
+ return "3.0.4 "
32
32
33
33
def skip_leading_wsp (f ):
34
34
"Works on a file, returns a file-like object"
@@ -94,7 +94,7 @@ def get_config(parse_args = True, cfg_path=None, init_logging=False):
94
94
if options is not None and options .use_forwarder :
95
95
listen_port = 17123
96
96
if config .has_option ('Main' ,'listen_port' ):
97
- listen_port = config .get ('Main' ,'listen_port' )
97
+ listen_port = config .get ('Main' , 'listen_port' )
98
98
agentConfig ['ddUrl' ] = "http://localhost:" + str (listen_port )
99
99
elif options is not None and options .dd_url :
100
100
agentConfig ['ddUrl' ] = options .dd_url
@@ -138,12 +138,6 @@ def get_config(parse_args = True, cfg_path=None, init_logging=False):
138
138
if config .get ('Main' , 'watchdog' ).lower () in ('no' , 'false' ):
139
139
agentConfig ['watchdog' ] = False
140
140
141
- # port we listen on (overriden via command line)
142
- if config .has_option ('Main' ,'port' ):
143
- agentConfig ['listen_port' ] = int (config .get ('Main' ,'port' ))
144
- else :
145
- agentConfig ['listen_port' ] = None
146
-
147
141
# Optional graphite listener
148
142
if config .has_option ('Main' ,'graphite_listen_port' ):
149
143
agentConfig ['graphite_listen_port' ] = int (config .get ('Main' ,'graphite_listen_port' ))
0 commit comments