1 parent 2ec6b12 commit e91997dCopy full SHA for e91997d
2 files changed
.github/workflows/drift.yml
@@ -24,7 +24,7 @@ jobs:
24
python-version: "3.12"
25
26
- name: Install Terradev CLI
27
- run: pip install .[aws,gcp]
+ run: pip install ".[aws,gcp]"
28
29
- name: Run canary drift checks
30
env:
terradev_cli/drift_monitor/agent.py
@@ -266,6 +266,13 @@ def _check_endpoint(
266
result["drift_reasons"].append(
267
f"expected HTTP {expected_status}, got {response.status_code}"
268
)
269
+ # Include a short snapshot of the response body to diagnose auth failures.
270
+ try:
271
+ err_text = response.text.strip()[:500]
272
+ if err_text:
273
+ result["error_body"] = err_text
274
+ except (ValueError, TypeError, AttributeError):
275
+ pass
276
result["drift_summary"] = "; ".join(result["drift_reasons"])
277
return result
278
0 commit comments