Commit Graph

13 Commits (9d06976273cb2102d82ecfd2aa0b7af6ed6465dd)

Author SHA1 Message Date
Michael DeHaan e51ee83ec7 Make URI module default to 30 seconds. 12 years ago
Grant Gavares a1d9a683a9 Add socket timeout to uri module.
The uri module can be configured to abort after a specified timeout if
it cannot connect to the configured uri. This prevents a uri action from
hanging indefinitely when the remote endpoint cannot be reached because
it is unavailable, there is a firewall in place etc. The default behavior
is left unchanged: timeout=None

This change also introduces a new type for module_parameters: int
Code was added to perform conversion from string -> int type in
module_common.py.

The new type was required in order to play nice with httplib2 which
refuses to accept (and convert) anything other than a numeric type for
the timeout value.
12 years ago
Daniel Hokka Zakrisson 1dadd70d9f Remove choices=BOOLEANS as it is no longer needed 12 years ago
Daniel Hokka Zakrisson 0150f18a3b Use argument type checking to convert to boolean 12 years ago
Michael DeHaan 9c7d70dd9e Merge pull request #2119 from jpmens/uri_json
uri: load JSON for content-type: application/json
12 years ago
Jan-Piet Mens a050c78d74 uri: load JSON for content-type: application/json
document
check prefix of content-type and merge dicts
amend doc
load JSON into 'json' subkey
12 years ago
Romeo Theriault c2fdb768e5 uri doc fixes 12 years ago
Michael DeHaan 65b826a8a8 'make pep8' is now clean 12 years ago
Michael DeHaan f4629c2bdf Hate to do this, but URI module docs were constructing messed up RST files, so removing examples for now. Will ask someone to work on them. 12 years ago
Michael DeHaan d9d033fa58 Tweak doc examples 12 years ago
Romeo Theriault 93baccce01 fixed the documentation so it build properly 12 years ago
Romeo Theriault 0e15b95787 moved module checking below module initialization 12 years ago
Romeo Theriault 8b458b2921 uri module 12 years ago