Skip to content
Snippets Groups Projects
Commit e40a4cdc authored by Cain, Payton David's avatar Cain, Payton David
Browse files

Cast ports to integers

parent 8dd4a31b
No related branches found
No related tags found
2 merge requests!146Release CMO metadata to production,!70Cast ports to integers
...@@ -35,9 +35,13 @@ def get_data_factory( ...@@ -35,9 +35,13 @@ def get_data_factory(
SamplingPeriod.HOUR, SamplingPeriod.HOUR,
SamplingPeriod.DAY, SamplingPeriod.DAY,
]: ]:
return MiniSeedFactory(host=host, port=os.getenv("DATA_MINISEED_PORT", "2061")) return MiniSeedFactory(
host=host, port=int(os.getenv("DATA_MINISEED_PORT", "2061"))
)
elif sampling_period in [SamplingPeriod.SECOND, SamplingPeriod.MINUTE]: elif sampling_period in [SamplingPeriod.SECOND, SamplingPeriod.MINUTE]:
return EdgeFactory(host=host, port=os.getenv("DATA_EARTHWORM_PORT", "2060")) return EdgeFactory(
host=host, port=int(os.getenv("DATA_EARTHWORM_PORT", "2060"))
)
else: else:
return None return None
......
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