Error with elastictranscoder not using notifications
Opened this issue · 0 comments
Creating a pipeline without notifications generates the following error:
TASK [Elastic Transcoder] ***********************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'NoneType' object has no attribute 'iteritems'
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Traceback (most recent call last):\n File "/var/folders/wp/t9rp86wd4jlbsrfcbs2ldt_xkv972s/T/ansible_WINXQL/ansible_module_elastictranscoder.py", line 202, in \n main()\n File "/var/folders/wp/t9rp86wd4jlbsrfcbs2ldt_xkv972s/T/ansible_WINXQL/ansible_module_elastictranscoder.py", line 198, in main\n create_et_pipeline(connection, module)\n File "/var/folders/wp/t9rp86wd4jlbsrfcbs2ldt_xkv972s/T/ansible_WINXQL/ansible_module_elastictranscoder.py", line 135, in create_et_pipeline\n notifications = fix_up_notifications_dict(module.params.get('notifications'))\n File "/var/folders/wp/t9rp86wd4jlbsrfcbs2ldt_xkv972s/T/ansible_WINXQL/ansible_module_elastictranscoder.py", line 89, in fix_up_notifications_dict\n for key,value in dictionary.iteritems():\nAttributeError: 'NoneType' object has no attribute 'iteritems'\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 0}
on line 135 need to take into account that the notifications
param is None and that on line 145, notifications variable may not be defined.