Skip to content
Snippets Groups Projects
Commit f00d8fff authored by Wilbur, Spencer Franklin's avatar Wilbur, Spencer Franklin
Browse files

Merge branch 'port-change-attempt-2' into 'master'

Allow `None` value for --[in|out]put-port

See merge request !229
parents 9307d510 7e93ae26
No related branches found
No related tags found
1 merge request!229Allow `None` value for --[in|out]put-port
Pipeline #266140 failed
...@@ -7,10 +7,14 @@ def get_edge_factory( ...@@ -7,10 +7,14 @@ def get_edge_factory(
data_type="variation", data_type="variation",
host=os.getenv("EDGE_HOST", "127.0.0.1"), host=os.getenv("EDGE_HOST", "127.0.0.1"),
interval="second", interval="second",
input_port=2060, input_port=os.getenv("INPUT_EDGE_PORT", None),
output_port=7981, output_port=os.getenv("OUTPUT_EDGE_PORT", None),
**kwargs **kwargs
) -> EdgeFactory: ) -> EdgeFactory:
if input_port is None:
input_port = 2060
if output_port is None:
output_port = 7981
return EdgeFactory( return EdgeFactory(
host=host, host=host,
interval=interval, interval=interval,
...@@ -25,10 +29,14 @@ def get_miniseed_factory( ...@@ -25,10 +29,14 @@ def get_miniseed_factory(
data_type="variation", data_type="variation",
host=os.getenv("EDGE_HOST", "127.0.0.1"), host=os.getenv("EDGE_HOST", "127.0.0.1"),
interval="second", interval="second",
input_port=2061, input_port=os.getenv("INPUT_MINISEED_PORT", None),
output_port=7974, output_port=os.getenv("OUTPUT_MINISEED_PORT", None),
**kwargs **kwargs
) -> MiniSeedFactory: ) -> MiniSeedFactory:
if input_port is None:
input_port = 2061
if output_port is None:
output_port = 7974
return MiniSeedFactory( return MiniSeedFactory(
host=host, host=host,
interval=interval, interval=interval,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment