Skip to content

Commit

Permalink
fix a bug that breaks webhook launches when a survey is in use
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpetrello committed Oct 29, 2019
1 parent 8bc6367 commit ab6322a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions awx/api/views/webhooks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from hashlib import sha1
import hmac
import json
import logging
import urllib.parse

Expand Down Expand Up @@ -151,13 +150,13 @@ def post(self, request, *args, **kwargs):
'webhook_credential': obj.webhook_credential,
'webhook_guid': event_guid,
},
'extra_vars': json.dumps({
'extra_vars': {
'tower_webhook_event_type': event_type,
'tower_webhook_event_guid': event_guid,
'tower_webhook_event_ref': event_ref,
'tower_webhook_status_api': status_api,
'tower_webhook_payload': request.data,
})
}
}

new_job = obj.create_unified_job(**kwargs)
Expand Down

0 comments on commit ab6322a

Please sign in to comment.