locust-cloud 1.4.3__py3-none-any.whl → 1.4.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
locust_cloud/auth.py CHANGED
@@ -6,7 +6,7 @@ from flask import redirect, request, url_for
6
6
  from flask_login import UserMixin, current_user, login_user
7
7
  from locust_cloud.constants import DEFAULT_LAMBDA_URL
8
8
 
9
- LAMBDA = DEFAULT_LAMBDA_URL
9
+ LAMBDA = os.environ.get("LOCUST_API_BASE_URL", DEFAULT_LAMBDA_URL)
10
10
 
11
11
 
12
12
  class AuthUser(UserMixin):
locust_cloud/cloud.py CHANGED
@@ -123,7 +123,7 @@ parser.add_argument(
123
123
  type=str,
124
124
  default=DEFAULT_LAMBDA_URL,
125
125
  help="Sets the namespace for scoping the deployed cluster",
126
- env_var="LOCUST_CLOUD_LAMBDA",
126
+ env_var="LOCUST_API_BASE_URL",
127
127
  )
128
128
  parser.add_argument(
129
129
  "--aws-access-key-id",
@@ -285,7 +285,6 @@ def main() -> None:
285
285
  {"name": "LOCUST_USERS", "value": str(options.users)},
286
286
  {"name": "LOCUST_REQUIREMENTS_URL", "value": requirements_url},
287
287
  {"name": "LOCUST_FLAGS", "value": " ".join(locust_options)},
288
- {"name": "LOCUST_WEB_HOST_DISPLAY_NAME", "value": "_____"},
289
288
  {"name": "LOCUST_API_BASE_URL", "value": DEFAULT_LAMBDA_URL},
290
289
  *locust_env_variables,
291
290
  ],