Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated reparse_args usage #199

Merged
merged 5 commits into from
Aug 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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