Skip to content

Commit

Permalink
Fixes #16477 - Ansible callback plugin - buf must be a byte string (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
karras authored and dLobatog committed Sep 8, 2016
1 parent 180cd25 commit 46e8164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/foreman_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def send_facts(self, host, data):
facts_json = FACTS_FORMAT % dict(host=host, data=data)

requests.post(url=FOREMAN_URL + '/api/v2/hosts/facts',
data=facts_json,
data=facts_json.encode('utf-8'),
headers=FOREMAN_HEADERS,
cert=FOREMAN_SSL_CERT,
verify=self.ssl_verify)
Expand Down

0 comments on commit 46e8164

Please sign in to comment.