|
22 | 22 | import octobot_commons.configuration as configuration |
23 | 23 | import octobot_commons.constants as common_constants |
24 | 24 | import octobot_commons.logging as logging |
| 25 | +import octobot_commons.errors as common_errors |
25 | 26 | import octobot_tentacles_manager.constants as tentacles_manager_constants |
26 | 27 |
|
27 | 28 | import octobot_trading.api as trading_api |
@@ -144,13 +145,19 @@ def set_default_profile(config, from_default_config_file=constants.DEFAULT_CONFI |
144 | 145 |
|
145 | 146 |
|
146 | 147 | def get_default_tentacles_url(version=None): |
| 148 | + beta_tentacle_bundle = os.getenv(constants.ENV_BETA_TENTACLES_PACKAGE_NAME, constants.BETA_TENTACLE_PACKAGE_NAME) |
| 149 | + # use beta tentacles repository for beta tentacles |
| 150 | + tentacles_repository = \ |
| 151 | + os.getenv(constants.ENV_BETA_TENTACLES_REPOSITORY, constants.BETA_TENTACLES_REPOSITORY) \ |
| 152 | + if version == beta_tentacle_bundle else \ |
| 153 | + os.getenv(constants.ENV_TENTACLES_REPOSITORY, constants.TENTACLES_REPOSITORY) |
147 | 154 | if version is None: |
148 | 155 | version = constants.TENTACLES_REQUIRED_VERSION \ |
149 | 156 | if constants.TENTACLES_REQUIRED_VERSION else constants.LONG_VERSION |
150 | 157 | return os.getenv( |
151 | 158 | constants.ENV_TENTACLES_URL, |
152 | 159 | f"{constants.OCTOBOT_ONLINE}/" |
153 | | - f"{os.getenv(constants.ENV_TENTACLES_REPOSITORY, constants.TENTACLES_REPOSITORY)}/" |
| 160 | + f"{tentacles_repository}/" |
154 | 161 | f"{os.getenv(constants.ENV_TENTACLES_PACKAGES_SOURCE, constants.OFFICIALS)}/" |
155 | 162 | f"{os.getenv(constants.ENV_TENTACLES_PACKAGES_TYPE, constants.TENTACLE_PACKAGES)}/" |
156 | 163 | f"{os.getenv(constants.ENV_TENTACLE_CATEGORY, constants.TENTACLE_CATEGORY)}/" |
|
0 commit comments