Skip to content

Commit

Permalink
Add default agent_class attribute
Browse files Browse the repository at this point in the history
fixes #174
  • Loading branch information
BrianJKoopman committed Oct 1, 2020
1 parent 1abba80 commit 8cc16cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocs/ocs_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def init_site_agent(args, address=None):
server, realm = args.site_hub, args.site_realm
#txaio.start_logging(level='debug')
agent = OCSAgent(ComponentConfig(realm, {}), args, address=address,
class_name=getattr(args, 'agent_class'))
class_name=getattr(args, 'agent_class', None))
runner = ApplicationRunner(server, realm)
return agent, runner

Expand Down

0 comments on commit 8cc16cf

Please sign in to comment.