Skip to content

Commit

Permalink
Fix renaming of dispatcher to faraday-dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
cript0nauta committed Oct 31, 2019
1 parent ee1b9cf commit ee813b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions faraday_agent_dispatcher/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ async def main(config_file):
return 0


@click.command("dispatcher")
@click.option("--config-file", default=None, help="Path to config ini file")
@click.option("--logs-folder", default="~", help="Path to logger folder")
def main_sync(config_file, logs_folder):
logging.reset_logger(logs_folder)
@click.command("faraday-dispatcher")
@click.option("-c", "--config-file", default=None, help="Path to config ini file")
@click.option("--logdir", default="~", help="Path to logger directory")
def main_sync(config_file, logdir):
logging.reset_logger(logdir)
logger = logging.get_logger()
try:
exit_code = asyncio.run(main(config_file))
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/faraday/test_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_execute_agent():
save_config(CONFIG_DIR)

# Init dispatcher!
command = ['dispatcher', f'--config-file={CONFIG_DIR}', f'--logs-folder={LOGGER_DIR}']
command = ['faraday-dispatcher', f'--config-file={CONFIG_DIR}', f'--logs-folder={LOGGER_DIR}']
p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
time.sleep(2) # If fails check time

Expand Down

0 comments on commit ee813b1

Please sign in to comment.