From ec124a376665b9dc61fea6c33094e7dfdcb7de4e Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Mon, 22 Nov 2021 14:34:12 -0500 Subject: [PATCH] chore: delete owlbot.py (#184) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: delete owlbot.py * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- cloud-tasks/snippets/create_http_task_with_token.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/cloud-tasks/snippets/create_http_task_with_token.py b/cloud-tasks/snippets/create_http_task_with_token.py index f09e85382bec..88888bcdbf00 100644 --- a/cloud-tasks/snippets/create_http_task_with_token.py +++ b/cloud-tasks/snippets/create_http_task_with_token.py @@ -16,13 +16,7 @@ def create_http_task( - project, - queue, - location, - url, - service_account_email, - audience=None, - payload=None, + project, queue, location, url, service_account_email, audience=None, payload=None, ): # [START cloud_tasks_create_http_task_with_token] """Create a task for a given queue with an arbitrary payload.""" @@ -49,7 +43,10 @@ def create_http_task( "http_request": { # Specify the type of request. "http_method": tasks_v2.HttpMethod.POST, "url": url, # The full url path that the task will be sent to. - "oidc_token": {"service_account_email": service_account_email, "audience": audience}, + "oidc_token": { + "service_account_email": service_account_email, + "audience": audience, + }, } }