From bca8bbe7c2ca0c7a67a0a62110fa2f886ba1edf6 Mon Sep 17 00:00:00 2001 From: John Barker Date: Sun, 9 Oct 2016 18:58:06 +0100 Subject: [PATCH] Correct functional typos --- lib/ansible/modules/cloud/amazon/ec2_elb.py | 2 +- lib/ansible/modules/cloud/azure/azure_rm_virtualmachine.py | 2 +- lib/ansible/modules/cloud/docker/docker_container.py | 2 +- lib/ansible/modules/network/nxos/nxos_acl.py | 2 +- lib/ansible/modules/network/nxos/nxos_bgp_af.py | 2 +- lib/ansible/modules/network/sros/sros_rollback.py | 2 +- lib/ansible/modules/packaging/os/yum.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_elb.py b/lib/ansible/modules/cloud/amazon/ec2_elb.py index 7785f7a862d..522ab078090 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_elb.py +++ b/lib/ansible/modules/cloud/amazon/ec2_elb.py @@ -330,7 +330,7 @@ def main(): ec2_elbs={'default': None, 'required': False, 'type':'list'}, enable_availability_zone={'default': True, 'required': False, 'type': 'bool'}, wait={'required': False, 'default': True, 'type': 'bool'}, - wait_timeout={'requred': False, 'default': 0, 'type': 'int'} + wait_timeout={'required': False, 'default': 0, 'type': 'int'} ) ) diff --git a/lib/ansible/modules/cloud/azure/azure_rm_virtualmachine.py b/lib/ansible/modules/cloud/azure/azure_rm_virtualmachine.py index 868e4ed7a2c..ef6fbdfa46a 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_virtualmachine.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_virtualmachine.py @@ -573,7 +573,7 @@ class AzureRMVirtualMachine(AzureRMModuleBase): # Verify parameters and resolve any defaults if self.vm_size and not self.vm_size_is_valid(): - self.fail("Parameter error: vm_size {0} is not valid for your subscription and location.".foramt( + self.fail("Parameter error: vm_size {0} is not valid for your subscription and location.".format( self.vm_size )) diff --git a/lib/ansible/modules/cloud/docker/docker_container.py b/lib/ansible/modules/cloud/docker/docker_container.py index 6af74a617c4..3a0aedd5171 100644 --- a/lib/ansible/modules/cloud/docker/docker_container.py +++ b/lib/ansible/modules/cloud/docker/docker_container.py @@ -1965,7 +1965,7 @@ def main(): privileged=dict(type='bool', default=False), published_ports=dict(type='list', aliases=['ports']), pull=dict(type='bool', default=False), - purge_networks=dict(type='bool', deault=False), + purge_networks=dict(type='bool', default=False), read_only=dict(type='bool', default=False), recreate=dict(type='bool', default=False), restart=dict(type='bool', default=False), diff --git a/lib/ansible/modules/network/nxos/nxos_acl.py b/lib/ansible/modules/network/nxos/nxos_acl.py index a208ebd635f..800bb4bcfd9 100644 --- a/lib/ansible/modules/network/nxos/nxos_acl.py +++ b/lib/ansible/modules/network/nxos/nxos_acl.py @@ -1154,7 +1154,7 @@ def main(): seq=dict(required=False, type='str'), name=dict(required=True, type='str'), action=dict(required=False, choices=['remark', 'permit', 'deny']), - remark=dict(requried=False, type='str'), + remark=dict(required=False, type='str'), proto=dict(required=False, type='str'), src=dict(required=False, type='str'), src_port_op=dict(required=False), diff --git a/lib/ansible/modules/network/nxos/nxos_bgp_af.py b/lib/ansible/modules/network/nxos/nxos_bgp_af.py index 57c87bc4836..131430f92ba 100644 --- a/lib/ansible/modules/network/nxos/nxos_bgp_af.py +++ b/lib/ansible/modules/network/nxos/nxos_bgp_af.py @@ -1487,7 +1487,7 @@ def main(): additional_paths_install=dict(required=False, type='bool'), additional_paths_receive=dict(required=False, type='bool'), additional_paths_selection=dict(required=False, type='str'), - additional_paths_send=dict(required=False, ype='bool'), + additional_paths_send=dict(required=False, type='bool'), advertise_l2vpn_evpn=dict(required=False, type='bool'), client_to_client=dict(required=False, type='bool'), dampen_igp_metric=dict(required=False, type='str'), diff --git a/lib/ansible/modules/network/sros/sros_rollback.py b/lib/ansible/modules/network/sros/sros_rollback.py index 8d9514c4039..f952b092124 100644 --- a/lib/ansible/modules/network/sros/sros_rollback.py +++ b/lib/ansible/modules/network/sros/sros_rollback.py @@ -188,7 +188,7 @@ def main(): rollback_location=dict(), local_max_checkpoints=dict(type='int'), - remote_max_checkpionts=dict(type='int'), + remote_max_checkpoints=dict(type='int'), rescue_location=dict(), diff --git a/lib/ansible/modules/packaging/os/yum.py b/lib/ansible/modules/packaging/os/yum.py index 928fe1fefde..9fd69ca96ef 100644 --- a/lib/ansible/modules/packaging/os/yum.py +++ b/lib/ansible/modules/packaging/os/yum.py @@ -986,7 +986,7 @@ def ensure(module, state, pkgs, conf_file, enablerepo, disablerepo, else: # should be caught by AnsibleModule argument_spec module.fail_json(msg="we should never get here unless this all" - " failed", changed=False, results='', errors='unepected state') + " failed", changed=False, results='', errors='unexpected state') return res