Closed ifelsefi closed 7 years ago
@makaimc ping, this issue is waiting for your response. click here for bot help
I am able to reproduce this - looks like it was introduced in 1.9.6 after 1.9.4 (works in 1.9.4). With this commit. Doesn't look like the module was tested when the change was made because it's clear the ['status'] == 200 on line 164 will never be true. What's next step here?
I'm not familiar with this fetch_url
function that broke the module, do I need to submit a fix for this? If I am specified as a maintainer on the module it would be good to get a heads up when changes are made and merged but not tested :/
IMHO the problem is, the module looks for 200 response code but it should (also) look for 201. Could you change https://github.com/ansible/ansible-modules-extras/blob/devel/notification/twilio.py#L164 to
if info['status'] not in [200, 201]:
and test it again?
sure, i got my test environment set up again. will make some modifications and submit a PR tonight or tmrw AM
I was able to reproduce and created a PR #3033 which also improves error message output.
Thanks! Y'all rock.
Now fixed in new release of Ansible 2.1.2.0.
@JusticeForMikeBrown thx!
:+1: Development crew on Ansible are awesome. thanks ya'll
ISSUE TYPE
COMPONENT NAME
Twilio
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
STEPS TO REPRODUCE
EXPECTED RESULTS
SMS works without reported error
ACTUAL RESULTS
SMS works but module reports error