Skip to content

Commit 355eeed

Browse files
Alexandre Lambercythelinuxer
authored andcommitted
Fix typo in error message when missing webhook_url.
Fix ATC complaining that resource.versionResult cannot be unmarshalled when the webhook_url parameter is empty/missing.
1 parent ea96c44 commit 355eeed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

assets/resource.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ def out_res(self, source, params, workspace):
8484
}
8585

8686
if not url:
87-
print("Missing 'webhock_url' under resource source.\nSkip posting to GoogleChat.", file=sys.stderr)
87+
print("Missing 'webhook_url' under resource source.\nSkip posting to GoogleChat.", file=sys.stderr)
8888
response["metadata"] += [
8989
{"name": "status", "value": "Failed"},
90-
{"name": "error", "value": "Missing 'webhock_url' in source"}
90+
{"name": "error", "value": "Missing 'webhook_url' in source"}
9191
]
92-
return json.dumps(response)
92+
return response
9393

9494
status, text = self.send(url, text)
9595
api_res = json.loads(text)

0 commit comments

Comments
 (0)