diff --git a/docs/docsite/rst/dev_guide/debugging.rst b/docs/docsite/rst/dev_guide/debugging.rst index 1dd87f4f361..e7f6d22264b 100644 --- a/docs/docsite/rst/dev_guide/debugging.rst +++ b/docs/docsite/rst/dev_guide/debugging.rst @@ -27,8 +27,8 @@ To debug a module running on a remote target (i.e. not ``localhost``): #. Take note of the directory Ansible used to store modules on the remote host. This directory is usually under the home directory of your ``ansible_user``, in the form ``~/.ansible/tmp/ansible-tmp-...``. #. SSH into the remote target after the playbook runs. #. Navigate to the directory you noted in step 3. -#. Extract the module you want to debug from the zipped file that Ansible sent to the remote host: ``$ python AnsiballZ_my_test_module.py explode``. Ansible will expand the module into ``./debug-dir``. You can optionally run the zipped file by specifying ``python AnsiballZ_my_test_module.py``. -#. Navigate to the debug directory: ``$ cd debug-dir``. +#. Extract the module you want to debug from the zipped file that Ansible sent to the remote host: ``$ python AnsiballZ_my_test_module.py explode``. Ansible will expand the module into ``./debug_dir``. You can optionally run the zipped file by specifying ``python AnsiballZ_my_test_module.py``. +#. Navigate to the debug directory: ``$ cd debug_dir``. #. Modify or set a breakpoint in ``__main__.py``. #. Ensure that the unzipped module is executable: ``$ chmod 755 __main__.py``. #. Run the unzipped module directly, passing the ``args`` file that contains the params that were originally passed: ``$ ./__main__.py args``. This approach is good for reproducing behavior as well as modifying the parameters for debugging. diff --git a/lib/ansible/modules/cloud/oneandone/oneandone_load_balancer.py b/lib/ansible/modules/cloud/oneandone/oneandone_load_balancer.py index ee83889bbd7..be1d3b2162e 100644 --- a/lib/ansible/modules/cloud/oneandone/oneandone_load_balancer.py +++ b/lib/ansible/modules/cloud/oneandone/oneandone_load_balancer.py @@ -47,7 +47,7 @@ options: api_url: description: - Custom API URL. Overrides the - ONEANDONE_API_URL environement variable. + ONEANDONE_API_URL environment variable. required: false name: description: diff --git a/lib/ansible/modules/cloud/oneandone/oneandone_monitoring_policy.py b/lib/ansible/modules/cloud/oneandone/oneandone_monitoring_policy.py index 735cc848afc..09161f3e963 100644 --- a/lib/ansible/modules/cloud/oneandone/oneandone_monitoring_policy.py +++ b/lib/ansible/modules/cloud/oneandone/oneandone_monitoring_policy.py @@ -44,7 +44,7 @@ options: api_url: description: - Custom API URL. Overrides the - ONEANDONE_API_URL environement variable. + ONEANDONE_API_URL environment variable. required: false name: description: diff --git a/lib/ansible/modules/cloud/oneandone/oneandone_private_network.py b/lib/ansible/modules/cloud/oneandone/oneandone_private_network.py index 06ed26e2624..883ba22c33d 100644 --- a/lib/ansible/modules/cloud/oneandone/oneandone_private_network.py +++ b/lib/ansible/modules/cloud/oneandone/oneandone_private_network.py @@ -47,7 +47,7 @@ options: api_url: description: - Custom API URL. Overrides the - ONEANDONE_API_URL environement variable. + ONEANDONE_API_URL environment variable. required: false name: description: diff --git a/lib/ansible/modules/cloud/oneandone/oneandone_public_ip.py b/lib/ansible/modules/cloud/oneandone/oneandone_public_ip.py index 86376124f96..bf432c94e4e 100644 --- a/lib/ansible/modules/cloud/oneandone/oneandone_public_ip.py +++ b/lib/ansible/modules/cloud/oneandone/oneandone_public_ip.py @@ -43,7 +43,7 @@ options: api_url: description: - Custom API URL. Overrides the - ONEANDONE_API_URL environement variable. + ONEANDONE_API_URL environment variable. required: false reverse_dns: description: diff --git a/lib/ansible/modules/cloud/oneandone/oneandone_server.py b/lib/ansible/modules/cloud/oneandone/oneandone_server.py index 92acf6fbab5..36aeb7b3992 100644 --- a/lib/ansible/modules/cloud/oneandone/oneandone_server.py +++ b/lib/ansible/modules/cloud/oneandone/oneandone_server.py @@ -39,12 +39,12 @@ options: auth_token: description: - Authenticating API token provided by 1&1. Overrides the - ONEANDONE_AUTH_TOKEN environement variable. + ONEANDONE_AUTH_TOKEN environment variable. required: true api_url: description: - Custom API URL. Overrides the - ONEANDONE_API_URL environement variable. + ONEANDONE_API_URL environment variable. datacenter: description: - The datacenter location. diff --git a/lib/ansible/modules/network/nxos/storage/nxos_vsan.py b/lib/ansible/modules/network/nxos/storage/nxos_vsan.py index f0cde105a2b..92dd9cd3e87 100644 --- a/lib/ansible/modules/network/nxos/storage/nxos_vsan.py +++ b/lib/ansible/modules/network/nxos/storage/nxos_vsan.py @@ -239,7 +239,7 @@ def main(): sw_vsaninterfaces = [] if vsanremove: - # Negetive case: + # Negative case: if vsanid == '4079' or vsanid == '4094': messages.append(str(vsanid) + " is a reserved vsan, hence cannot be removed") continue @@ -250,7 +250,7 @@ def main(): messages.append("There is no vsan " + str(vsanid) + " present in the switch. Hence there is nothing to delete") continue else: - # Negetive case: + # Negative case: if vsanid == '4079' or vsanid == '4094': messages.append(str(vsanid) + " is a reserved vsan, and always present on the switch") else: @@ -261,7 +261,7 @@ def main(): messages.append("creating vsan " + str(vsanid)) if vsanname is not None: - # Negetive case: + # Negative case: if vsanid == '4079' or vsanid == '4094': messages.append(str(vsanid) + " is a reserved vsan, and cannot be renamed") else: @@ -277,7 +277,7 @@ def main(): messages.append("setting vsan name to " + vsanname + " for vsan " + str(vsanid)) if vsansuspend: - # Negetive case: + # Negative case: if vsanid == '4079' or vsanid == '4094': messages.append(str(vsanid) + " is a reserved vsan, and cannot be suspended") else: