ansible/ansible-modules-extras — pull request #112 by josephtate (2014-11-18 08:04:13+00:00)
Title: If you're going to use urllib, you'd better import it

When you try to use the grove notification module as a standalone, you get an error:

```
TASK: [Notify Grove.io systems channel when the migration system is active] ***
failed: [localhost] => {"failed": true, "parsed": false}
invalid output was: Traceback (most recent call last):
File "/home/jtate/.ansible/tmp/ansible-tmp-1416296883.59-243048714965909/grove", line 1445, in
main()
File "/home/jtate/.ansible/tmp/ansible-tmp-1416296883.59-243048714965909/grove", line 92, in main
do_notify_grove(module, channel_token, service, message, url, icon_url)
File "/home/jtate/.ansible/tmp/ansible-tmp-1416296883.59-243048714965909/grove", line 66, in do_notify_grove
data = urllib.urlencode(my_data)
NameError: global name 'urllib' is not defined

```

This change ensures that urllib is imported (and therefore defined).