# Bug in github\_hooks?

**URL:** <https://forum.ansible.com/t/bug-in-github-hooks/14761>\
**Category:** Ansible Project\
**Created:** [March 12, 2014, 6:22pm UTC](https://forum.ansible.com/t/bug-in-github-hooks/14761 "2014-03-12T18:22:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Titus](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@Mike\_Titus](https://forum.ansible.com/u/Mike_Titus)\
**Post date:** [March 12, 2014, 6:22pm UTC](https://forum.ansible.com/t/bug-in-github-hooks/14761/1 "2014-03-12T18:22:24Z")

</div>

Thought I would post this here before raising an issue on GitHub:

This line in a role produced the error below:

github\_hooks: action=create hookurl=http://{{ inventory\_hostname }}:88 user={{ github\_user }} oauthkey={{ github\_oauth }} repo=[https://github.com/](https://github.com/){{ yii\_admin\_repo }}

The role _was_ being executed with a sudo\_user: value. All variables were checked using debug statements to make sure they had valid values.

fatal: [54.185.9.246] =\> failed to parse: SUDO-SUCCESS-astpyzjqbrfryzxrhuotxhrfdzgldycj  
Traceback (most recent call last):  
File “/tmp/ansible-tmp-1394648274.06-177805719541157/github\_hooks”, line 1241, in   
main()  
File “/tmp/ansible-tmp-1394648274.06-177805719541157/github\_hooks”, line 161, in main  
(rc, out) = create(hookurl, oauthkey, repo, user)  
TypeError: ‘NoneType’ object is not iterable

FATAL: all hosts have already failed – aborting

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [March 12, 2014, 6:23pm UTC](https://forum.ansible.com/t/bug-in-github-hooks/14761/2 "2014-03-12T18:23:59Z")

</div>

Yeah, that’s not good 🙂

Can you file a bug at [github.com/ansible/ansible](http://github.com/ansible/ansible)?

We’re not using this one ourselves, so if you’d like to take a crack at fixing it, that would also be welcome and probably expedite things a bit more!
