From c25711f8dc289c0b5ba127fd35df6738c21d4d75 Mon Sep 17 00:00:00 2001 From: Olivier Mehani Date: Fri, 22 Aug 2025 13:08:24 +1000 Subject: [PATCH] submit_to_lando: support id and job_id in reponse (bug 1983208) --- lando_cli/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lando_cli/cli.py b/lando_cli/cli.py index f89a989..5993e5e 100644 --- a/lando_cli/cli.py +++ b/lando_cli/cli.py @@ -218,7 +218,9 @@ def submit_to_lando( response = post_actions(config, repo_name, actions, relbranch=relbranch) - job_id = response["job_id"] + # In bug 1983208, lando switched for returning job_id to just id. + # For now, we handle both cases. + job_id = response.get("id", response.get("job_id")) click.echo(f"Job {job_id} successfully submitted to Lando") result = wait_for_job_completion(config, job_id)