bazelci.py no longer crashes when the BUILDKITE_ORGANIZATION_SLUG env variable is missing.
This change allows us to test the script locally without setting any variables.
@@ -43,7 +43,7 @@ random.seed()
CLOUD_PROJECT = (
"bazel-public"
- if os.environ["BUILDKITE_ORGANIZATION_SLUG"] == "bazel-trusted"
+ if os.environ.get("BUILDKITE_ORGANIZATION_SLUG") == "bazel-trusted"
else "bazel-untrusted"
)
