I hereby claim:
- I am cestinger on github.
- I am cestinger (https://keybase.io/cestinger) on keybase.
- I have a public key ASDa-3F1xOue30-ThtaVKzHcTtE2VkuqYlVm5ESVoEnePgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| Title | Description
########## | |
# Win10 Initial Setup Script | |
# Author: Disassembler <[email protected]> | |
# Version: 1.7, 2016-08-15 | |
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/ | |
# THIS IS A PERSONALIZED VERSION | |
# This script leaves more MS defaults on, including MS security features. | |
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1 |
We use hipchat to post messages out of hipchat. One thing we noticed is that we were consistently getting an error even though messages were posting correctly. | |
After a little research, we found that we were getting back a 204 from the api call. A 204 indicates that the request has been fulfilled and that there is no additional content to send in the response payload body - https://httpstatuses.com/204. | |
In our case, this is a valid return for this type of traffic - so looking at the hipchat.py script in modules, you can see that a false is purposefully being returned when no content is returned: | |
if result.get('status', None) == salt.ext.six.moves.http_client.OK: | |
response = hipchat_functions.get(api_version).get(function).get('response') | |
return result.get('dict', {}).get(response, None) | |
elif result.get('status', None) == salt.ext.six.moves.http_client.NO_CONTENT: |