From c87efe1447c39dba8b553dfb79bbbfcc10aef936 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Tue, 12 Mar 2019 13:34:52 +0100 Subject: [PATCH] Fix typo --- lib/ansible/modules/network/nxos/nxos_hsrp.py | 27 +++++-------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/lib/ansible/modules/network/nxos/nxos_hsrp.py b/lib/ansible/modules/network/nxos/nxos_hsrp.py index 2135fe20ca..e1a3330f64 100644 --- a/lib/ansible/modules/network/nxos/nxos_hsrp.py +++ b/lib/ansible/modules/network/nxos/nxos_hsrp.py @@ -1,27 +1,12 @@ #!/usr/bin/python -# -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . -# +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'network'} -DOCUMENTATION = ''' +DOCUMENTATION = r''' --- module: nxos_hsrp extends_documentation_fragment: nxos @@ -83,7 +68,7 @@ options: default: 'present' ''' -EXAMPLES = ''' +EXAMPLES = r''' - name: Ensure HSRP is configured with following params on a SVI nxos_hsrp: group: 10 @@ -138,7 +123,7 @@ EXAMPLES = ''' state: absent ''' -RETURN = ''' +RETURN = r''' commands: description: commands sent to the device returned: always @@ -408,9 +393,9 @@ def main(): elif len(kstr) == 1: auth_string = kstr[0] else: - module.fail_json(msg='Inavlid auth_string') + module.fail_json(msg='Invalid auth_string') if auth_enc != '0' and auth_enc != '7': - module.fail_json(msg='Inavlid auth_string, only 0 or 7 allowed') + module.fail_json(msg='Invalid auth_string, only 0 or 7 allowed') device_info = get_capabilities(module) network_api = device_info.get('network_api', 'nxapi')