From 098126807d947cbdbaf946aca79f581bdf61436c Mon Sep 17 00:00:00 2001 From: "Hennadiy (Gena) Verkh" Date: Thu, 9 Jul 2015 11:39:46 +0200 Subject: [PATCH] Update uri.py Added methods 'TRACE', 'CONNECT' from https://www.rfc-editor.org/rfc/rfc2616.txt, section 5.1.1 Added method 'REFRESH' --- lib/ansible/modules/network/basics/uri.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/basics/uri.py b/lib/ansible/modules/network/basics/uri.py index 65cb1dc1492..6031fd291c8 100644 --- a/lib/ansible/modules/network/basics/uri.py +++ b/lib/ansible/modules/network/basics/uri.py @@ -73,6 +73,7 @@ options: description: - The HTTP method of the request or response. required: false + choices: [ "GET", "POST", "PUT", "HEAD", "DELETE", "OPTIONS", "PATCH", "TRACE", "CONNECT", "REFRESH" ] default: "GET" return_content: description: @@ -364,7 +365,7 @@ def main(): password = dict(required=False, default=None), body = dict(required=False, default=None), body_format = dict(required=False, default='raw', choices=['raw', 'json']), - method = dict(required=False, default='GET'), + method = dict(required=False, default='GET', choices=['GET', 'POST', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'PATCH', 'TRACE', 'CONNECT', 'REFRESH']), return_content = dict(required=False, default='no', type='bool'), follow_redirects = dict(required=False, default='safe', choices=['all', 'safe', 'none', 'yes', 'no']), creates = dict(required=False, default=None),