From 2505d56401a1501b6adea89fe7ec68f9e248f2a1 Mon Sep 17 00:00:00 2001 From: caio2k Date: Tue, 14 Feb 2017 20:31:12 +0100 Subject: [PATCH] removed deprecated HEADER_* from examples (#21395) Even though the documentation says that HEADER_* parameter is deprecated, the examples still show its usage. --- lib/ansible/modules/network/basics/uri.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/network/basics/uri.py b/lib/ansible/modules/network/basics/uri.py index 0db1305b33c..356993e3cf7 100644 --- a/lib/ansible/modules/network/basics/uri.py +++ b/lib/ansible/modules/network/basics/uri.py @@ -196,14 +196,16 @@ EXAMPLES = ''' method: POST body: "name=your_username&password=your_password&enter=Sign%20in" status_code: 302 - HEADER_Content-Type: "application/x-www-form-urlencoded" + headers: + Content-Type: "application/x-www-form-urlencoded" register: login - uri: url: https://your.form.based.auth.example.com/dashboard.php method: GET return_content: yes - HEADER_Cookie: "{{login.set_cookie}}" + headers: + Cookie: "{{login.set_cookie}}" - name: Queue build of a project in Jenkins uri: