abandon_old_changes: Include host argument
Bug: b/368181572
Change-Id: Ied4fb3318cedfd016f3569d0116e59c52388b76a
Reviewed-on: https://pigweed-review.googlesource.com/c/infra/recipes/+/237096
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
diff --git a/recipe_modules/abandon_old_changes/api.py b/recipe_modules/abandon_old_changes/api.py
index e26aa18..c1bc831 100644
--- a/recipe_modules/abandon_old_changes/api.py
+++ b/recipe_modules/abandon_old_changes/api.py
@@ -81,9 +81,10 @@
self.m.futures.spawn(
self.m.gerrit.abandon,
f'abandon {change["_number"]}',
- change['_number'],
- 'Abandoning orphaned roll change.',
- )
+ change_id=change['_number'],
+ message='Abandoning orphaned roll change.',
+ host=host,
+ ),
)
self.m.futures.wait(futures)