summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorPedro Romano <pedro.romano@salesseek.co.uk>2014-02-02 20:53:52 +0000
committerPedro Romano <pedro.romano@salesseek.co.uk>2014-02-02 20:53:52 +0000
commitb04f197113b65d19684c9abfefd20cf8ec38a59d (patch)
tree0520c126940a703e1c00b209e9aeff3d4f45d83d /network
parent8a9f0f7478db4c48c4c0b3bd5573a220dbdc9f2f (diff)
downloadansible-modules-core-b04f197113b65d19684c9abfefd20cf8ec38a59d.tar.gz
Allow the 'PATCH' method in the 'uri' module since 'httplib2' allows it
and some APIs require it.
Diffstat (limited to 'network')
-rw-r--r--network/uri4
1 files changed, 2 insertions, 2 deletions
diff --git a/network/uri b/network/uri
index 9a22d475..6f10d5c8 100644
--- a/network/uri
+++ b/network/uri
@@ -68,7 +68,7 @@ options:
description:
- The HTTP method of the request or response.
required: false
- choices: [ "GET", "POST", "PUT", "HEAD", "DELETE", "OPTIONS" ]
+ choices: [ "GET", "POST", "PUT", "HEAD", "DELETE", "OPTIONS", "PATCH" ]
default: "GET"
return_content:
description:
@@ -309,7 +309,7 @@ def main():
user = dict(required=False, default=None),
password = dict(required=False, default=None),
body = dict(required=False, default=None),
- method = dict(required=False, default='GET', choices=['GET', 'POST', 'PUT', 'HEAD', 'DELETE', 'OPTIONS']),
+ method = dict(required=False, default='GET', choices=['GET', 'POST', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'PATCH']),
return_content = dict(required=False, default='no', type='bool'),
force_basic_auth = dict(required=False, default='no', type='bool'),
follow_redirects = dict(required=False, default='no', type='bool'),