Skip to content

Commit

Permalink
Merge pull request #199 from simonsobs/argparse-updates
Browse files Browse the repository at this point in the history
Remove deprecated reparse_args usage
  • Loading branch information
BrianJKoopman authored Aug 23, 2021
2 parents bb4d9c1 + 538b30d commit eb05e11
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 194 deletions.
5 changes: 3 additions & 2 deletions agents/fake_data/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# OCS Registry Agent
# ocs Agent container for running the registry.
# OCS Fake Data Agent
# ocs Agent container for generating random data

# Use ocs base image
FROM ocs:latest

# Set the working directory to registry directory
WORKDIR /app/ocs/agents/fake_data/

# Copy this agent into the WORKDIR
COPY . .

# Run registry on container startup
Expand Down
9 changes: 2 additions & 7 deletions agents/influxdb_publisher/influxdb_publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,8 @@ def make_parser(parser=None):
# Start logging
txaio.start_logging(level=environ.get("LOGLEVEL", "info"))

parser = site_config.add_arguments()

parser = make_parser(parser)

args = parser.parse_args()

site_config.reparse_args(args, 'InfluxDBAgent')
parser = make_parser()
args = site_config.parse_args(agent_class='InfluxDBAgent', parser=parser)

agent, runner = ocs_agent.init_site_agent(args)

Expand Down
Loading

0 comments on commit eb05e11

Please sign in to comment.