Fix gcloud auth login output capture swallowing device-code URL

gcloud auth login --no-browser was called via _gcloud_plain which uses
capture_output=True, silently swallowing the device-code URL that the
user needs to complete authentication. Run it directly with no capture.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
chrisfu 2026-03-31 23:21:19 -07:00
parent 2a03bfa395
commit fabd1a3463

View File

@ -1595,7 +1595,7 @@ def _run_gcp_tui(stdscr, output_path: str, mode: str, provider: str):
curses.endwin()
print("\nRunning: gcloud auth login --no-browser\n")
rc, _ = _gcloud_plain("auth", "login", "--no-browser")
rc = subprocess.run(["gcloud", "auth", "login", "--no-browser"]).returncode
stdscr = curses.initscr()
curses.start_color()
curses.use_default_colors()