Skip to content

Commit

Permalink
Merge pull request #343 from jhonabreul/bug-cloud-live-deploy-by-proj…
Browse files Browse the repository at this point in the history
…ect-id

Fix cloud live deploy by project ID
  • Loading branch information
jhonabreul authored Jul 14, 2023
2 parents 074abce + d9daac9 commit 7d241ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lean/commands/cloud/live/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,7 @@ def deploy(project: str,
raise RuntimeError(f"Custom portfolio holdings setting is not available for {brokerage_instance.get_name()}")

else:
environment_name = "lean-cli-cloud"
algorithm_file = container.project_manager.find_algorithm_file(Path(project))
lean_config = container.lean_config_manager.get_complete_lean_config(environment_name, algorithm_file, None)
lean_config = container.lean_config_manager.get_lean_config()
brokerage_instance = _configure_brokerage(lean_config, logger, kwargs, show_secrets=show_secrets)
live_node = _configure_live_node(logger, api_client, cloud_project)
notify_order_events, notify_insights, notify_methods = _configure_notifications(logger)
Expand Down

0 comments on commit 7d241ba

Please sign in to comment.