Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Correcting exception call for UnexpectedResponse #57975
Resubmitting PR#41796 as it's gone stale and not maintained.
Using the snow_record.py module with an incorrect parameters will always return a generic error, or will not execute at all and fail with a generic error:
This is because the pysnow python modules exception is named UnexpectedResponseFormat:
grep Unexpected /usr/lib/python2.7/site-packages/pysnow/exceptions.py
Additionally, the exception call leaves out the 'exceptions' class. This code corrects these issues, and now the module will run playbooks correctly, as well as fail with the proper HTTP response codes.
Thanks to @syspimp and Robert Washington for finding the code and testing the fix.
Fixes: #41796 (Stale PR)