trigger: return non-json metadata

This commit is contained in:
Jimmy Zelinskie 2015-04-15 17:02:53 -04:00
parent bd57c6a8fb
commit 3798c5f377

View file

@ -594,10 +594,11 @@ class CustomBuildTrigger(BuildTrigger):
def _metadata_from_payload(self, payload):
try:
validate(json.loads(payload), self.payload_schema)
metadata = json.loads(payload)
validate(metadata, self.payload_schema)
except:
raise InvalidPayloadException()
return payload
return metadata
def handle_trigger_request(self, request, trigger):
payload = request.get_json()